OnLoad scripts
This extension allows us to run scripts when the page loads
Co to jest OnLoad scripts?
OnLoad scripts to rozszerzenie Chrome opracowane przez manojmokashi, a jego główną funkcją jest „This extension allows us to run scripts when the page loads”.
Pobierz plik CRX rozszerzenia OnLoad scripts
Pobierz pliki rozszerzeń OnLoad scripts w formacie crx, zainstaluj ręcznie rozszerzenia Chrome w przeglądarce lub udostępnij pliki crx znajomym, aby łatwo zainstalować rozszerzenia Chrome.
Instrukcja Użytkowania Rozszerzenia
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 });
Podstawowe informacje o rozszerzeniu
Nazwa | ![]() |
ID | gddicpebdonjdnkhonkkfkibnjpaclok |
Oficjalny URL | https://chrome.google.com/webstore/detail/onload-scripts/gddicpebdonjdnkhonkkfkibnjpaclok |
Opis | This extension allows us to run scripts when the page loads |
Rozmiar pliku | 20.27 KB |
Liczba instalacji | 637 |
Aktualna Wersja | 1.0 |
Ostatnia Aktualizacja | 2016-04-05 |
Data Publikacji | 2016-04-05 |
Ocena | 4.80/5 Łącznie 10 Oceny |
Deweloper | manojmokashi |
Typ Płatności | free |
Obsługiwane Języki | 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" } } |