OnLoad scripts

This extension allows us to run scripts when the page loads

什麼是OnLoad scripts?

OnLoad scripts是由manojmokashi開發的Chrome擴展程式,該擴展的主要功能是“This extension allows us to run scripts when the page loads”。

下載OnLoad scripts擴展crx文件

下載OnLoad scripts擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

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

擴展基本資訊

名稱 OnLoad scripts OnLoad scripts
ID gddicpebdonjdnkhonkkfkibnjpaclok
官方網址 https://chrome.google.com/webstore/detail/onload-scripts/gddicpebdonjdnkhonkkfkibnjpaclok
簡介 This extension allows us to run scripts when the page loads
檔案大小 20.27 KB
安裝次數 637
目前版本 1.0
更新時間 2016-04-05
上架時間 2016-04-05
評分 4.80/5 共 10 次評分
開發者 manojmokashi
付費類型 free
支援的語言 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"
    }
}