Twitter REMOVE from feed: Who to Follow, Topics to Follow, and Promoted Tweets

Remove Who to Follow and Topics to Follow

< Feedback op Twitter REMOVE from feed: Who to Follow, Topics to Follow, and Promoted Tweets

Recensie: Goed - het script werkt zoals het hoort

§
Geplaatst: 09-07-2021
Bijgewerkt: 09-07-2021

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.

$( "span:contains('Follow Topic')" ).parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().remove();

I also changed how the function is called, first I removed the infinite loop, of the gtfo() function

console.log('removed');
//Delay
setTimeout(function(){}, 250);

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.

Hope this helps!

§
Geplaatst: 02-09-2021

Smart, thanks

§
Geplaatst: 01-09-2022

Implemented the run on scroll, I don't see follow topic that often so I didn't add that yet. Thanks!

Reactie plaatsen

Log in om antwoord te geven.