Skip to content

Instantly share code, notes, and snippets.

@abuxton
Created August 10, 2023 14:35
Show Gist options
  • Save abuxton/0de5e7d4959b439f769bd0d4da79017d to your computer and use it in GitHub Desktop.
Save abuxton/0de5e7d4959b439f769bd0d4da79017d to your computer and use it in GitHub Desktop.
tamper monkey add image
// ==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