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();
}
);