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

Remove Who to Follow and Topics to Follow

< 腳本Twitter REMOVE from feed: Who to Follow, Topics to Follow, and Promoted Tweets的回應

評論:正評 - 腳本一切正常

§
發表於:2021-07-09
編輯:2021-07-09

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!

§
發表於:2021-09-02

Smart, thanks

§
發表於:2022-09-01

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

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址