Created
December 1, 2021 22:20
-
-
Save nzall/bac1e993f515c4fc42fe50933b545d8a to your computer and use it in GitHub Desktop.
8 bit theater userscript
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 Click 8 Bit Theater to go to next Panel | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://www.nuklearpower.com/* | |
| // @icon https://www.google.com/s2/favicons?domain=nuklearpower.com | |
| // @grant none | |
| // ==/UserScript== | |
| /* globals comicDiv */ | |
| (function() { | |
| 'use strict'; | |
| var comicDiv = document.getElementById("comic"); | |
| if(comicDiv){ | |
| var wrapper = document.createElement("a"); | |
| var nextLink = document.querySelector("a[rel=next]"); | |
| if(nextLink){ | |
| wrapper.href = nextLink.href; | |
| wrapper.title = "next"; | |
| wrapper.appendChild(comicDiv.firstElementChild); | |
| comicDiv.appendChild(wrapper); | |
| } | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment