Skip to content Skip to sidebar Skip to footer

How To Auto Trigger My Greasemonkey Script Every Time I Open A Page

this is my greasemonkey script. I want to auto-trigger it every time I open a reddit page. I want function up_vote_all() { vote_all('arrow up'); } to trigger on eve

Solution 1:

i found it, i need to insert this command in the beginning

document.addEventListener("DOMContentLoaded", function() {
  up_vote_all();
});

it was easy.

Post a Comment for "How To Auto Trigger My Greasemonkey Script Every Time I Open A Page"