Makes sponsored feeds invisible on facebook.com
< 脚本Facebook no ads的反馈
I think I found a new method that does the job:const removeAdsNew = () => { let list = document.querySelectorAll(`[aria-label="Sponsored"]`); for (let el of list) { let story = el.closest('[data-pagelet]'); story.remove(); }}then I use it with const throttleKill = throttle(removeAdsNew, 50);and that seems to work so far
登录(不可用)以发表回复。
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
I think I found a new method that does the job:
const removeAdsNew = () => {
let list = document.querySelectorAll(`[aria-label="Sponsored"]`);
for (let el of list) {
let story = el.closest('[data-pagelet]');
story.remove();
}
}
then I use it with
const throttleKill = throttle(removeAdsNew, 50);
and that seems to work so far