-

@ Auspicious
2025-04-28 12:49:00
// ==UserScript==
// @name Coin Rain for Primal
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Coins raining on Primal social media
// @match https://primal.net/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Create a style element
const style = document.createElement('style');
style.textContent = `
.coin {
position: fixed;
top: -50px;
width: 30px;
height: 30px;
background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bitcoin.svg/1200px-Bitcoin.svg.png');
background-size: cover;
opacity: 0.9;
z-index: 9999;
pointer-events: none;
animation: fall linear forwards;
}
@keyframes fall {
0% {transform: translateY(0);}
100% {transform: translateY(110vh);}
}
`;
document.head.appendChild(style);
// Function to create a coin
function createCoin() {
const coin = document.createElement('div');
coin.className = 'coin';
coin.style.left = Math.random() * window.innerWidth + 'px';
coin.style.animationDuration = (2 + Math.random() * 3) + 's'; // 2 to 5 seconds
document.body.appendChild(coin);
// Remove the coin after it falls
setTimeout(() => {
coin.remove();
}, 5000);
}
// Drop coins every 200 milliseconds
setInterval(createCoin, 200);
})();