Last active
February 22, 2024 20:02
-
-
Save stephengodderidge/df3b33b92bb3eeb2f36fd69a6e721448 to your computer and use it in GitHub Desktop.
Tamper Monkey Script that replaces all HTML of specific sites with a simple message. Default block of YouTube, but can support any URL
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 Ambition | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Replace any website with your own HTML. | |
| // @author You | |
| // @match https://www.youtube.com | |
| // @match https://www.youtube.com/shorts/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| // To add your own URLs, simply add @match tags under line 7 | |
| document.body.innerHTML = ""; | |
| document.body.innerHTML = ` | |
| <body> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| } | |
| .classy { | |
| position:fixed; | |
| padding:0; | |
| margin:0; | |
| top:0; | |
| left:0; | |
| width: 100%; | |
| height: 100%; | |
| background:rgba(255,255,255,0.5); | |
| font-size: 10rem; | |
| background-color: #11081F; | |
| color:#A456F0; | |
| } | |
| </style><div class="classy"><h1 style="text-align:center;"> < Your Message Here > </h1></div></body> | |
| ` | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment