-
-
Save ZenithRogue/700218f9a33f0d8159c54c982e20a778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name IMG fixer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js | |
// @author You | |
// @match https://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var body = document.getElementsByTagName('body')[0]; | |
var baseURL = "https://yt3-zenithknight.c9users.io/b64/?url="; | |
var images = $("img"); | |
var x=0; | |
var grabby; | |
while(x<images.length) { | |
grabby = baseURL + images[x].src; | |
var newIMG; | |
$.get(grabby, function(data) { | |
//alert(data); | |
newIMG = "http://kindersay.com/files/images/hamburger.png"; | |
}); | |
$("img")[x].src = newIMG; | |
//images[x].src = "http://kindersay.com/files/images/hamburger.png"; | |
x++; | |
} | |
// Your code here... | |
})(); |
sirhypernova
commented
Oct 19, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment