Created
April 10, 2023 03:34
-
-
Save rynomad/625252b4da8b840836a212387fecdc0d to your computer and use it in GitHub Desktop.
makes a smiley face
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 Add Smiley Face | |
// @namespace Violentmonkey Scripts | |
// @match http*://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
// Create a div element for the smiley face | |
const smileyDiv = document.createElement("div"); | |
smileyDiv.innerText = "😊"; | |
smileyDiv.style.position = "fixed"; | |
smileyDiv.style.top = "10px"; | |
smileyDiv.style.right = "10px"; | |
smileyDiv.style.fontSize = "24px"; | |
smileyDiv.style.zIndex = "9999"; | |
// Add the smiley face to the document body | |
document.body.appendChild(smileyDiv); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment