Created
April 10, 2023 04:17
-
-
Save rynomad/14a8f2578d4600236d54a6f158e865a9 to your computer and use it in GitHub Desktop.
Adds a large smiley face to the upper right corner of every page
This file contains hidden or 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 Smiley Face Inserter | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Adds a large smiley face to the upper right corner of every page | |
// @author Your Name | |
// @match *://*/* | |
// @grant none | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const smileyFace = "😀"; | |
const smileyStyle = ` | |
position: fixed; | |
top: 10px; | |
right: 10px; | |
font-size: 48px; | |
z-index: 10000; | |
`; | |
let smileyElement = $('<div>').text(smileyFace).attr('style', smileyStyle); | |
$('body').append(smileyElement); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment