OnLoad scripts

This extension allows us to run scripts when the page loads

Hvad er OnLoad scripts?

OnLoad scripts er en Chrome-udvidelse udviklet af manojmokashi, og dens hovedfunktion er "This extension allows us to run scripts when the page loads".

Download OnLoad scripts-udvidelses-CRX-fil

Download OnLoad scripts-udvidelsesfiler i crx-format, installer Chrome-udvidelser manuelt i browseren eller del crx-filer med venner for nemt at installere Chrome-udvidelser.

Brugsanvisning til Udvidelsen

                        We 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.

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

Grundlæggende oplysninger om udvidelsen

Navn OnLoad scripts OnLoad scripts
ID gddicpebdonjdnkhonkkfkibnjpaclok
Officiel URL https://chrome.google.com/webstore/detail/onload-scripts/gddicpebdonjdnkhonkkfkibnjpaclok
Beskrivelse This extension allows us to run scripts when the page loads
Filstørrelse 20.27 KB
Antal Installationer 637
Nuværende Version 1.0
Senest Opdateret 2016-04-05
Udgivelsesdato 2016-04-05
Bedømmelse 4.80/5 Samlet 10 Bedømmelser
Udvikler manojmokashi
Betalingsmetode free
Understøttede Sprog en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "OnLoad scripts",
    "description": "This extension allows us to run scripts when the page loads",
    "version": "1.0",
    "content_scripts": [
        {
            "matches": [
                "*:\/\/*\/*",
                "file:\/\/\/*"
            ],
            "js": [
                "onload.js"
            ],
            "run_at": "document_end",
            "all_frames": true
        }
    ],
    "permissions": [
        "storage"
    ],
    "options_ui": {
        "page": "options.html",
        "chrome_style": true
    },
    "icons": {
        "48": "ols48.png",
        "128": "ols.png"
    }
}