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 });
Основная информация о расширении
Название | ![]() |
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" } } |