24 lines
499 B
JavaScript
24 lines
499 B
JavaScript
|
(function () {
|
|||
|
var s = document.createElement("script");
|
|||
|
s.textContent = '('+(function() {
|
|||
|
var si = window.setInterval;
|
|||
|
var st = window.setTimeout;
|
|||
|
|
|||
|
window.setInterval = function (callback, timeout) {
|
|||
|
var __ = this;
|
|||
|
|
|||
|
timeout /= 2;
|
|||
|
|
|||
|
return si.apply(__, [callback, timeout]);
|
|||
|
};
|
|||
|
window.setTimeout = function (callback, timeout) {
|
|||
|
var __ = this;
|
|||
|
|
|||
|
timeout /= 2;
|
|||
|
|
|||
|
return st.apply(__, [callback, timeout]);
|
|||
|
};
|
|||
|
}) + ')();';
|
|||
|
document.documentElement.appendChild(s);
|
|||
|
});
|