OnLoad scripts
This extension allows us to run scripts when the page loads
Qu'est-ce que OnLoad scripts ?
OnLoad scripts est une extension Chrome développée par manojmokashi, et sa fonction principale est "This extension allows us to run scripts when the page loads".
Télécharger le fichier CRX de l'extension OnLoad scripts
Téléchargez les fichiers d'extension OnLoad scripts au format crx, installez manuellement les extensions Chrome dans le navigateur ou partagez les fichiers crx avec des amis pour installer facilement les extensions Chrome.
Instructions d'Utilisation de l'Extension
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 });
Informations de Base sur l'Extension
Nom | ![]() |
ID | gddicpebdonjdnkhonkkfkibnjpaclok |
URL Officiel | https://chrome.google.com/webstore/detail/onload-scripts/gddicpebdonjdnkhonkkfkibnjpaclok |
Description | This extension allows us to run scripts when the page loads |
Taille du Fichier | 20.27 KB |
Nombre d'Installations | 637 |
Version Actuelle | 1.0 |
Dernière Mise à Jour | 2016-04-05 |
Date de Publication | 2016-04-05 |
Évaluation | 4.80/5 Total 10 Évaluations |
Développeur | manojmokashi |
Type de Paiement | free |
Langues Prises en Charge | 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" } } |