Created
April 10, 2023 03:45
-
-
Save rynomad/0e6d9beeb5ffd3b0a7e84bae642eea3e to your computer and use it in GitHub Desktop.
fda
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 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