Prankmarklet
How do I make an prankmarklet?
Feeling productive like me today?Well, try and substitute one of your colleagues browser bookmarks with this one.... What is a prankmarklet? How do you make a prankmarklet? This script and codes were developed by Nobitagit on 05 December 2022, Monday.
Prankmarklet - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Prankmarklet</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { background: #00557E; text-align: center; font-family: 'Nunito', sans-serif;
}
.woop { -webkit-transition: transform 1s; transition: transform 1s;
}
h1 { color: #13adfe; font-size: 5rem; display: inline-block; border: 5px solid #005f8d; padding: 0 1.5rem; border-radius: 10px; margin: 0.5rem 0 0;
}
li, p { color: #13adfe; font-size: 2rem; list-style: none; opacity: 0; -webkit-transition: opacity 1s; transition: opacity 1s;
}
.info { opacity: 1;
}
#button { font-family: 'Nunito', sans-serif; color: #318458; font-size: 3rem; display: inline-block; border: 5px solid #fccd23; padding: 0 1.5rem; border-radius: 10px; background: #ffe311; cursor: pointer; text-decoration: none; -webkit-transition: transform 1s; transition: transform 1s; -webkit-transform: translateY(-220px); transform: translateY(-220px);
}
#button:hover { background: #ecd100;
}
.yooo .woop { -webkit-transform: rotate(-180deg); transform: rotate(-180deg);
}
.yooo .woop li, .yooo .woop p { opacity: 1;
}
.yooo .woop .info { opacity: 1;
}
.yooo .woop #button { -webkit-transform: translateY(0); transform: translateY(0);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <link href='https://fonts.googleapis.com/css?family=Nunito:400,700' rel='stylesheet' type='text/css'> <h1>Prankmarklet</h1> <p class="info"> Drag the button to your bookmark bar :-) </p> <div class="woop"> <p class="info2">Told you not to click...... <br /> Ok so, now repeat after me:</p> <ul> <li> 1. Click it and drag to your bookmarks. </li> <li> 2. Test on any page. </li> </ul> <a id="button" href="javascript:(function(){document.body.style.webkitTransition='all%201s';document.body.style.mozTransition='all%201s';document.body.style.transition='all%201s';document.body.style.webkitTransform='rotate(180deg)';document.body.style.mozTransform='rotate(180deg)';document.body.style.transform='rotate(180deg)';})()"> Don't click me! </a> </div> <script src="js/index.js"></script>
</body>
</html>
Prankmarklet - Script Codes CSS Codes
body { background: #00557E; text-align: center; font-family: 'Nunito', sans-serif;
}
.woop { -webkit-transition: transform 1s; transition: transform 1s;
}
h1 { color: #13adfe; font-size: 5rem; display: inline-block; border: 5px solid #005f8d; padding: 0 1.5rem; border-radius: 10px; margin: 0.5rem 0 0;
}
li, p { color: #13adfe; font-size: 2rem; list-style: none; opacity: 0; -webkit-transition: opacity 1s; transition: opacity 1s;
}
.info { opacity: 1;
}
#button { font-family: 'Nunito', sans-serif; color: #318458; font-size: 3rem; display: inline-block; border: 5px solid #fccd23; padding: 0 1.5rem; border-radius: 10px; background: #ffe311; cursor: pointer; text-decoration: none; -webkit-transition: transform 1s; transition: transform 1s; -webkit-transform: translateY(-220px); transform: translateY(-220px);
}
#button:hover { background: #ecd100;
}
.yooo .woop { -webkit-transform: rotate(-180deg); transform: rotate(-180deg);
}
.yooo .woop li, .yooo .woop p { opacity: 1;
}
.yooo .woop .info { opacity: 1;
}
.yooo .woop #button { -webkit-transform: translateY(0); transform: translateY(0);
}
Prankmarklet - Script Codes JS Codes
document.getElementById('button').addEventListener('click', function(){ document.getElementsByTagName('body')[0].classList.add('yooo');
});
Developer | Nobitagit |
Username | nobitagit |
Uploaded | December 05, 2022 |
Rating | 3 |
Size | 3,406 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS Turntable | 8,857 Kb |
Radials | 4,821 Kb |
Angularjs Material floating button directive | 14,578 Kb |
Rebbbound | 6,636 Kb |
Ripples in water | 2,704 Kb |
CSS-only Clock | 3,198 Kb |
Svg mobile burger icon | 1,864 Kb |
A Pen by nobitagit | 2,965 Kb |
CSS3 Locker | 2,023 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Css color for svg | Ademilter | 2,392 Kb |
Ghost | Mghayour | 11,738 Kb |
Twinner Spinner II | Katydecorah | 2,974 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Css Rotating 3d cubes different speed | Dghez | 2,364 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
Slim Grid SASS SCSS v3.2 | Thesturs | 4,709 Kb |
Bootstrap 3 Price Table | Honglio | 2,655 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!