-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstack-utilities-history-hack.user.js
35 lines (31 loc) · 1.21 KB
/
stack-utilities-history-hack.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
// ==UserScript==
// @name Review History Plugin Hack
// @description Disables the History plugin setInterval workaround
// @author Tim Stone
// @match http://stackoverflow.com/review*
// @match http://meta.stackoverflow.com/review*
// @match http://superuser.com/review*
// @match http://meta.superuser.com/review*
// @match http://serverfault.com/review*
// @match http://meta.serverfault.com/review*
// @match http://askubuntu.com/review*
// @match http://meta.askubuntu.com/review*
// @match http://*.stackexchange.com/review*
// @match http://answers.onstartups.com/review*
// @match http://meta.answers.onstartups.com/review*
// @match http://stackapps.com/review*
// ==/UserScript==
function inject(f) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.textContent = '(' + f.toString() + ')()';
document.body.appendChild(script);
}
inject(function () {
StackExchange.using('review', function () {
var list;
if (History && (list = History.intervalList) && list.length) {
clearInterval(list.shift());
}
});
});