Code-Injector
Code-Injector copied to clipboard
Thank you
Thank you :)
The bing.com search results page now has code in it where if I leave the tab for 45 seconds, it will scroll me back to the top when it gets the focus again, causing me to lose my place in the results. Look at these crazy blur and focus events bound to the window:
var FocusScrollToBTop;
(function () {
function i() {
var i = t() - n;
_w.sj_log && sj_log('CI.ReturnTop', 'AwayTime', i.toString());
i > AwayTimeThreshold && (_w.scrollTo(0, 0), _w.sj_log && sj_log('CI.ReturnTop', 'ReturnTop' + AwayTimeThreshold.toString(), 'Triggered'))
}
function r() {
n = t()
}
function t() {
return Math.round(Date.now() / 1000)
}
var n;
sj_evt.bind('focusTopScroll', i);
sj_evt.bind('focusTopBlur', r);
sj_be(_w, 'focus', function () {
sj_evt.fire('focusTopScroll')
});
sj_be(_w, 'blur', function () {
sj_evt.fire('focusTopBlur')
})
}) (FocusScrollToBTop || (FocusScrollToBTop = {
}));
I used your extension to match on bing.com and run the javascript AwayTimeThreshold = 100000000;
I verified that the value was adjusted in the debugger console. And now it works like a charm! Thanks so much! The documentation is top notch as well.
I used your extension to match on bing.com and run the javascript
AwayTimeThreshold = 100000000;
I searched for "AwayTimeThreshold" with Google (since Bing's result made no sense) and luckily found this page. Thank you guys! This behavior from Bing really made me crazy...
But is it possible to do such jobs with uBlock Origin?