您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Helps you remember birthdays!
// ==UserScript== // @name Birthday Buddy // @version 0.4 // @namespace https://spoonstudios.dev/ // @description Helps you remember birthdays! // @author EthanSpoon // @match *://*/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Create the popup container const popup = document.createElement('div'); let rand = Math.floor(Math.random() * 5) + 1; if (rand==1) { popup.textContent = "you suck"; } else if(rand==2){ popup.textContent = "you are stinky"; } else if(rand==3){ popup.textContent = "you smell like fishy fish"; } else if(rand==4){ popup.textContent = "panko awesome"; } else{ popup.textContent = "never gonna give you up"; } // Style the popup (centered, visible, nice background) Object.assign(popup.style, { position: 'fixed', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', backgroundColor: '#222', color: '#fff', padding: '20px 40px', fontSize: '24px', fontFamily: 'Arial, sans-serif', borderRadius: '10px', boxShadow: '0 4px 10px rgba(0,0,0,0.5)', zIndex: 99999, cursor: 'pointer', userSelect: 'none', }); // Remove popup when clicked popup.addEventListener('click', () => popup.remove()); // Add popup to body document.body.appendChild(popup); // Optional: remove popup automatically after 5 seconds setTimeout(() => popup.remove(), 5000); })();