Skip to content

Instantly share code, notes, and snippets.

@rynomad
Created April 10, 2023 03:45
Show Gist options
  • Save rynomad/0e6d9beeb5ffd3b0a7e84bae642eea3e to your computer and use it in GitHub Desktop.
Save rynomad/0e6d9beeb5ffd3b0a7e84bae642eea3e to your computer and use it in GitHub Desktop.
fda
// ==UserScript==
// @name Smiley Face Button
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Create the smiley face button element
var smileyButton = document.createElement('button');
smileyButton.style.position = 'fixed';
smileyButton.style.top = '10px';
smileyButton.style.right = '10px';
smileyButton.style.fontSize = '60px'; // Change this value to adjust the size of the smiley
smileyButton.innerHTML = '😀';
// Add a click event listener to the smiley face button
smileyButton.addEventListener('click', function() {
alert('tee-hee');
});
// Append the smiley face button element to the body
document.body.appendChild(smileyButton);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment