-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathByeCodeOfConduct.user.js
44 lines (40 loc) · 1.4 KB
/
ByeCodeOfConduct.user.js
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
// ==UserScript==
// @name Bye Code Of Conduct
// @namespace stackuserflow
// @version 0.1.5
// @description try to take over the world!
// @author Guilherme Nascimento (https://github.com/brcontainer)
// @match *://*.stackoverflow.com/*
// @match *://*.stackexchange.com/*
// @match *://mathoverflow.net/*
// @match *://serverfault.com/*
// @match *://superuser.com/*
// @match *://stackapps.com/*
// @match *://*.serverfault.com/*
// @match *://*.superuser.com/*
// @match *://*.stackapps.com/*
// @downloadURL https://github.com/stackuserflow/stackoverflow-tampermonkey-greasemonkey/raw/master/ByeCodeOfConduct.user.js
// @updateURL https://github.com/stackuserflow/stackoverflow-tampermonkey-greasemonkey/raw/master/ByeCodeOfConduct.user.js
// @grant none
// ==/UserScript==
(function (d) {
'use strict';
var content = `[class*=new-contributor] {
display: none !important;
position: fixed !important;
top: -9999px !important;
left: -9999px !important;
z-index: -99;
}`;
function trigger()
{
var s = d.createElement('style');
s.textContent = content;
d.head.appendChild(s);
}
if (/^(interactive|complete)$/i.test(d.readyState)) {
trigger();
} else {
d.addEventListener('DOMContentLoaded', trigger);
}
})(document);