Prankmarklet

Developer
Size
3,406 Kb
Views
10,120

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 Previews

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');
});
Prankmarklet - Script Codes
Prankmarklet - Script Codes
Home Page Home
Developer Nobitagit
Username nobitagit
Uploaded December 05, 2022
Rating 3
Size 3,406 Kb
Views 10,120
Do you need developer help for Prankmarklet?

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!

Nobitagit (nobitagit) Script Codes
Create amazing captions with AI!

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!