This extension allows us to run scripts when the page loads
Extension stats
This extension was removed from Chrome Web Store on
2022-07-23
By: manojmokashi
Users: 637
Rating: 4.80
(10)
Creation date: 2016-04-05
Risk impact: Low risk impact
Risk likelihood: High risk likelihood
Manifest version: 2
Permissions:
Size: 20.76K
Other platforms
Not available on Firefox
Not available on Edge
Want to check extension ranking and stats more quickly for other Chrome extensions?
Install
Chrome-Stats extension
to view Chrome-Stats data as you browse the Chrome Web Store.
Extension summary
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(); }
See moreUser reviews
Did just exactly what i was looking for !
Did exactly what I needed. Very good. The only improvement I can think of is to add syntax highlighting and autosave.
Decent solution for dirty tasks! :)
Suppose, you hate Jira and its unavoidable habit to enter the edit mode on the description click. So you just save this chunk in the extension options, and that's it: only ⌘+Click opens the editor!
document.addEventListener('click', ((event)=>{
if (event.metaKey || event.ctrlKey || document.body.id !== 'jira') {
return;
}
let e = event.target;
let contentWrapperFound;
while (e && e !== document && e.tagName !== 'A') {
if (!contentWrapperFound && (
e.matches('div[class^="ContentWrapper_"]') ||
e.matches('div[class^="ak-renderer-document"]')
)) {
contentWrapperFound = true;
} else if (e.matches('div[role="presentation"]')) {
if (contentWrapperFound) {
console.log("CLICKED TO NOT EDIT, hold ctrl/cmd if you really want the thing to happen");
event.preventDefault();
event.stopPropagation();
return false;
} else {
break;
}
}
e = e.parentNode;
}
}
), {
capture: true
});
Extension safety
Risk impact
OnLoad scripts requires very minimum permissions.
Risk likelihood
OnLoad scripts may not be trust-worthy. Avoid installing if possible unless you really trust this publisher.
Upgrade to see risk analysis details
Similar extensions
Here are some Chrome extensions that are similar to OnLoad scripts:
JScript tricks Run Your JavaScript Injector Pro Custom JavaScript for Websites 2 InjectCode Run Javascript User JavaScript and CSS JavaScript Injector Advanced Automation Utilities Web Code Injector JS-Exec Page Manipulator Scripty - Javascript Injector AutoGraphicsUtilities Javascript Injector run-script NerdSpeak Stock Helper Request Interceptor Witchcraft: JS/CSS injector Inject Code RMS (Run My Script) - Script runner Code Injector Web Injector Javascript & Css auto injection
szamil
4.22
2,000+
manecocomph
N/A
841
eGust
5.00
246
xcv58
4.39
50,000+
https://jaak.kytt.ee
4.65
2,000+
Ataiva.com
4.22
30,000+
tenRabbits
4.78
100,000+
luisnaia
2.91
4,000+
Albert Sun
N/A
115
Jon Ander Echeverria Sanchez
5.00
1,000+
SeevenDev
4.67
578
Ruud14
3.77
9,000+
https://scripty.abhisheksatre.com
4.17
20,000+
Albert Sun
5.00
307
Daniel Han
4.22
1,000+
zhangsanshi5566
N/A
17
https://nerdspeak.net
4.23
7,000+
Vinay Kaparthi
4.07
10,000+
https://luciopaiva.com
4.60
1,000+
Yehuda Moskowitz
4.90
1,000+
BlueCaret
3.71
2,000+
martin.suba01
3.30
798
Trevor Reed
4.75
1,000+
dotpower.com
3.00
1,000+