OnLoad scripts

This extension allows us to run scripts when the page loads

OnLoad scriptsคืออะไร?

OnLoad scripts เป็นส่วนขยายของ Chrome ที่พัฒนาโดย manojmokashi และคุณลักษณะหลักของมันคือ "This extension allows us to run scripts when the page loads"

ดาวน์โหลดไฟล์ CRX ของส่วนขยาย OnLoad scripts

ดาวน์โหลดไฟล์ส่วนขยาย 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
URL อย่างเป็นทางการ 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"
    }
}