Created
August 10, 2023 14:35
-
-
Save abuxton/0de5e7d4959b439f769bd0d4da79017d to your computer and use it in GitHub Desktop.
tamper monkey add image
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 _Add an image to a web page | |
// @include http://stackoverflow.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js | |
// ==/UserScript== | |
$("body").append ( | |
'<img id="myNewImage" src="https://www.pikpng.com/pngl/m/399-3994789_mst3k-mystery-science-theater-silhouettes-clipart.png">' | |
); | |
$("#myNewImage").css ( { | |
position: "fixed", | |
width: "128px", | |
height: "128px", | |
bottom: "0", | |
right: "0" | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment