OnLoad scripts

Rate / votes
More than 241 users worldwide
Current version: 1.0
Price: FREE
Download extension
Like this extension ? Like/Share it!
This extension allows us to run scripts when the page loadsWe can specify any javascript in the options, that we want to execute on document load,
we can make it conditional based on window.href etc.
e.g. stop videos autoload.
<code>
// this list is auto-updated
var videos = document.getElementsByTagName("video" );
function stopVideosPreload(){
for( var j=0; j< videos.length; j++){
videos[j].preload = "none";
}
}

var obs = new MutationObserver( function(mutations, observer){
stopVideosPreload();
}
);

obs.observe( document.body, { childList:true, subtree:true });
</code>

Reviews of OnLoad scripts extension

Similar extension