OnLoad scripts

This extension allows us to run scripts when the page loads

Wat is OnLoad scripts?

OnLoad scripts is een Chrome-extensie ontwikkeld door manojmokashi, en de belangrijkste functie is "This extension allows us to run scripts when the page loads".

Download het CRX-bestand van de extensie OnLoad scripts

Download OnLoad scripts-extensiebestanden in crx-indeling, installeer Chrome-extensies handmatig in de browser of deel de crx-bestanden met vrienden om Chrome-extensies eenvoudig te installeren.

Instructies voor het Gebruik van de Extensie

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

Basisinformatie over de Extensie

Naam OnLoad scripts OnLoad scripts
ID gddicpebdonjdnkhonkkfkibnjpaclok
Officiële URL https://chrome.google.com/webstore/detail/onload-scripts/gddicpebdonjdnkhonkkfkibnjpaclok
Beschrijving This extension allows us to run scripts when the page loads
Bestandsgrootte 20.27 KB
Aantal Installaties 637
Huidige Versie 1.0
Laatst Bijgewerkt 2016-04-05
Publicatiedatum 2016-04-05
Beoordeling 4.80/5 Totaal 10 Beoordelingen
Ontwikkelaar manojmokashi
Betalingswijze free
Ondersteunde Talen 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"
    }
}