-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathwdd_python.js
More file actions
92 lines (86 loc) · 3.08 KB
/
wdd_python.js
File metadata and controls
92 lines (86 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Show true financials
var wdd_div = document.createElement("div");
Object.assign(wdd_div.style, {
position: "fixed",
top: "16px",
left: "50%",
transform: "translateX(-50%)", // true horizontal centering
minWidth: "420px",
maxWidth: "580px",
minHeight: "72px",
backgroundColor: "#2c2c2e", // classy dark grey / near-black
color: "#e0e0e0", // light text
borderRadius: "10px",
boxShadow: "0 6px 24px rgba(0,0,0,0.5)",
zIndex: "9999",
opacity: "0.96",
padding: "16px 20px 16px 20px",
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
fontSize: "14px",
lineHeight: "1.45",
display: "flex",
alignItems: "center",
justifyContent: "center",
boxSizing: "border-box",
});
// Close button
var closeBtn = document.createElement("button");
Object.assign(closeBtn.style, {
position: "absolute",
top: "8px",
right: "10px",
background: "none",
border: "none",
color: "#aaa",
fontSize: "18px",
fontWeight: "bold",
cursor: "pointer",
padding: "4px 8px",
lineHeight: "1",
borderRadius: "4px",
});
closeBtn.innerHTML = "×";
closeBtn.title = "Close";
closeBtn.onclick = function() {
wdd_div.remove();
};
wdd_div.appendChild(closeBtn);
// Display the true financial data
var content = document.createElement("div");
content.style.textAlign = "center";
content.innerHTML =
'<div style="font-weight: 600; font-size: 15px; margin-bottom: 6px;">' +
'<strong>Python Software Foundation Financials (As of 2024)</strong>' +
'</div>' +
'<div style="margin-bottom: 4px;">' +
'Revenue: <strong>$4 Million</strong> ' +
'| Total Assets: <strong>$3.3 Million</strong> <br>' +
'Expenses: <strong>$5.7 Million</strong> ' +
'| Executive Director Pay: <strong>$145k</strong> <br>' +
'Declined ' +
'<a href="https://x.com/LundukeJournal/status/1982993216476524910" ' +
'target="_blank" ' +
'style="color: #a5d8ff; text-decoration: none; border-bottom: 1px dotted #a5d8ff;">' +
'$1.5 Million Grant'+
'</a> to continue DEI policies.' +
'</div>' +
'<div style="font-size: 13px; opacity: 0.9;">' +
'Sources: ' +
'<a href="https://projects.propublica.org/nonprofits/organizations/43594598" ' +
'target="_blank" ' +
'style="color: #a5d8ff; text-decoration: none; border-bottom: 1px dotted #a5d8ff;">' +
'IRS Form 990' +
'</a>, ' +
'<a href="https://www.python.org/psf/records/" ' +
'target="_blank" ' +
'style="color: #a5d8ff; text-decoration: none; border-bottom: 1px dotted #a5d8ff;">' +
'Annual Reports' +
'</a>' +
'</div>';
// Hover effect for links
content.querySelectorAll('a').forEach(a => {
a.onmouseenter = () => { a.style.color = "#4dabf7"; };
a.onmouseleave = () => { a.style.color = "#a5d8ff"; };
});
wdd_div.appendChild(content);
document.body.appendChild(wdd_div);