Skip to content

Instantly share code, notes, and snippets.

@rynomad
Created April 10, 2023 03:34
Show Gist options
  • Save rynomad/625252b4da8b840836a212387fecdc0d to your computer and use it in GitHub Desktop.
Save rynomad/625252b4da8b840836a212387fecdc0d to your computer and use it in GitHub Desktop.
makes a smiley face
// ==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