Archive Pages Design$type=blogging

Tampermonkey script to edit links in source

Tampermonkey script to edit links in source // ==UserScript== // @name Google Add // @namespace // @description // @...

Tampermonkey script to edit links in source



// ==UserScript==
// @name          Google Add
// @namespace     
// @description   
// @include       *
// ==/UserScript==

var srcs = document.links;
var links = document.getElementsByTagName("link");
var scripts = document.getElementsByTagName("script");
var imgs = document.getElementsByTagName("img");
var iframes = document.getElementsByTagName("iframe");


for (i = 0; i < links.length; i++ ) {
    links[i].href = links[i].href+'?google';        
}

for (i = 0; i < scripts.length; i++ ) {
    scripts[i].src = scripts[i].src+'?google'; 
}

for (i = 0; i < imgs.length; i++ ) {
    imgs[i].src = imgs[i].src+'?google'; 
}

for (i=0; i<srcs.length; i++)
{
    srcs[i].href = srcs[i].href+'?google';
}

for (i=0; i<iframes.length; i++){

    iframes[i].src = iframes[i].src+'?google'; 
}

COMMENTS

Name

99designs adobe ai Amikom audiojungle automation background blizzard blogger card cdr code coding Creative css desain logo design drink education envato exariva.com fitness font food free freebie freebie & free file freelancer game gaming giveaway graphic design Handwriting hearthstone html idea illustrator imacros inspiration internet javascript kreativemagz Logo logo vector mockup packaging pdf Photography photoshop premiere problem solving programming science scss steam stock photo tampermonkey Template theme tips tutorial typeface typography userscript vector video virtual link king wallpaper youtube
false
ltr
item
kreativeMAGZ: Tampermonkey script to edit links in source
Tampermonkey script to edit links in source
kreativeMAGZ
http://www.kreativemagz.com/2019/03/tampermonkey-script-to-edit-links-in.html
http://www.kreativemagz.com/
http://www.kreativemagz.com/
http://www.kreativemagz.com/2019/03/tampermonkey-script-to-edit-links-in.html
true
2977666615667296227
UTF-8
Not found any posts VIEW ALL Read more Reply Cancel reply Delete By Home PAGES POSTS View All YOU WILL ALSO LIKE: LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago