OnLoad scripts

This extension allows us to run scripts when the page loads

What is OnLoad scripts?

OnLoad scripts is a Chrome extension developed by manojmokashi, and its main feature is "This extension allows us to run scripts when the page loads".

Download OnLoad scripts Extension CRX File

Download OnLoad scripts extension files in crx format, manually install Chrome extensions in the browser, or share the crx files with friends to easily install Chrome extensions.

Extension Usage Instructions

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

Extension Basic Information

Name OnLoad scripts OnLoad scripts
ID gddicpebdonjdnkhonkkfkibnjpaclok
Official URL https://chrome.google.com/webstore/detail/onload-scripts/gddicpebdonjdnkhonkkfkibnjpaclok
Description This extension allows us to run scripts when the page loads
File Size 20.27 KB
Installation Count 637
Current Version 1.0
Last Updated 2016-04-05
Publish Date 2016-04-05
Rating 4.80/5 Total 10 Ratings
Developer manojmokashi
Payment Type free
Supported Languages 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"
    }
}