And added a bit that calls the function when you scroll, I kept the initial call after 1 second.
$( window ).scroll(function() {
gtfo();
});
This works great and you don't see any ads or suggestions even if you scroll quickly and the function isn't called all the time, so it's a bit lighter on the CPU.
Great script, thank you! I made some improvements, you could add if you'd like:
I added a bit that removes, the "Follow Topic" suggestions.
I also changed how the function is called, first I removed the infinite loop, of the
gtfo()
functionAnd added a bit that calls the function when you scroll, I kept the initial call after 1 second.
This works great and you don't see any ads or suggestions even if you scroll quickly and the function isn't called all the time, so it's a bit lighter on the CPU.
Hope this helps!