Remove sponsored content from Pocket

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

< Opiniones de Remove sponsored content from Pocket

Puntuación: Pasable; el script funciona, pero tiene carencias importantes

Deleted user 84694
§
Publicado: 17/12/2016
Editado: 17/12/2016

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
zbleskAutor
§
Publicado: 28/09/2017

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.

Publicar respuesta

Inicia sesión para responder.