Skip to content

Instantly share code, notes, and snippets.

@nzall
Created December 1, 2021 22:20
Show Gist options
  • Select an option

  • Save nzall/bac1e993f515c4fc42fe50933b545d8a to your computer and use it in GitHub Desktop.

Select an option

Save nzall/bac1e993f515c4fc42fe50933b545d8a to your computer and use it in GitHub Desktop.
8 bit theater userscript
// ==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