-
Notifications
You must be signed in to change notification settings - Fork 4
/
Highlight.user.js
48 lines (43 loc) · 1.6 KB
/
Highlight.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
45
46
47
48
// ==UserScript==
// @name Highlight
// @namespace stackuserflow
// @version 0.1.5
// @description highlight new posts
// @author Guilherme Nascimento (https://github.com/brcontainer)
// @match *://stackapps.com/*
// @match *://askubuntu.com/*
// @match *://superuser.com/*
// @match *://serverfault.com/*
// @match *://stackoverflow.com/*
// @match *://*.stackapps.com/*
// @match *://*.askubuntu.com/*
// @match *://*.superuser.com/*
// @match *://*.serverfault.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.stackexchange.com/*
// @match *://mathoverflow.net/*
// @match *://mathoverflow.com/*
// @match *://*.mathoverflow.net/*
// @match *://*.mathoverflow.com/*
// @exclude *://chat.*
// @downloadURL https://github.com/stackuserflow/stackoverflow-tampermonkey-greasemonkey/raw/master/Highlight.user.js
// @updateURL https://github.com/stackuserflow/stackoverflow-tampermonkey-greasemonkey/raw/master/Highlight.user.js
// @grant none
// ==/UserScript==
(function (d) {
'use strict';
var bgColor = '#e1e1f1'; //Troque pela cor desejada
function trigger()
{
var s = d.createElement('style');
s.textContent = `.tagged-interesting {
background-color: ${bgColor} !important;
};`
d.head.appendChild(s);
}
if (/^(interactive|complete)$/i.test(d.readyState)) {
trigger();
} else {
d.addEventListener('DOMContentLoaded', trigger);
}
})(document);