Remove sponsored content from Pocket

It tries to remove sponsored content from Pocket's queue.

< 脚本Remove sponsored content from Pocket的反馈

评价:一般 - 脚本能用,但还有一些问题

Deleted user 84694
§
发表于:2016-12-17
编辑于:2016-12-17

Remove "Best of 2016" from List [screenshot attached]

The element has this class:

class="item eoy_promotion"

I think eoy means end of year. I also assume that they have different classes for different events.

I also think the 5 second timeout is too long, reduce it to either 1000ms or 500ms

// suggested changes
setTimeout(function() {
    console.log('Removing all ' + $(".spoc").length + ' items with the "spoc" class.');
    // I don't know if specifying the parent element is more efficient
    // I just felt like adding it in
    $("#queue .spoc").hide();
    // hide other promotions
    $("#queue [class*=_promotion]").hide();
}, 500); // lower timeout
zblesk作者
§
发表于:2017-09-28

Sorry, haven't been here for a long time - Tampermonkey kept crashing my browser on some sites, so I had to uninstall it. I only have found your comment now. I assume the script will be non-functional by now, but I'll take a look into it.

发表回复

登录(不可用)以发表回复。

QingJ © 2025

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