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.

Revisions

  1. abuxton created this gist Aug 10, 2023.
    16 changes: 16 additions & 0 deletions append_image.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    // ==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"
    } );