lundi 10 juin 2019

After enabling a userscript the webpage is no more interactable as before

I made a userscript that works on https://stackoverflow.com/questions/* which removes Stackoverflows' ads (It works Well). But when I click on "read more comments" for a question form or interact with some buttons of the question, the website scrolls to the top not enabling me to read more comment or etc...

I have tried to disable the userscript after that the page acts normally, but when I re-enable the script back the webpage does not interact.

$(document).ready(function(){
    $(".everyonelovesstackoverflow.everyoneloves__top-leaderboard").remove();
});

When I enable the script the ads disappear (as expected). But the web page becomes no more normal.

Aucun commentaire:

Enregistrer un commentaire