Last active
March 18, 2026 07:40
-
-
Save frozenpandaman/a5a2a05a62a32e62e61c8fe5b7499796 to your computer and use it in GitHub Desktop.
Userscript to make bunkatsu.info look like it did prior to March 2026
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 Old CSS for bunkatsu.info | |
| // @description Make bunkatsu.info look nice and Brutalist again. | |
| // @version 0.1 | |
| // @author eli / @frozenpandaman | |
| // @match https://bunkatsu.info/* | |
| // @icon https://ni-a.jp/favicon.ico | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const cssfiles = [ | |
| 'https://bunkatsu.info/fy26_all.css', | |
| 'https://bunkatsu.info/fy26_pc.css', | |
| 'https://bunkatsu.info/fy26_mobile.css' | |
| ]; | |
| const links = document.querySelectorAll('link[rel="stylesheet"][href]'); | |
| links.forEach(link => { | |
| if (cssfiles.includes(link.href)) { | |
| link.href = link.href.replace('fy26_', 'ni-a_'); | |
| } | |
| }); | |
| const style = document.createElement('style'); | |
| style.textContent = ` | |
| .fy26pankuzu, .fy26copyright { | |
| font-size: 10pt; | |
| } | |
| .fy26pankuzu { | |
| margin-top: 0.5em; | |
| margin-bottom: -1em; | |
| } | |
| .bunfontsmallformmain .bunformnotice { | |
| font-size: 0.77em; | |
| padding-right: 1em; | |
| padding-left: 1em; | |
| } | |
| .bunnoticezone { | |
| padding: 1em 1em 1em 0; | |
| list-style-type: none; | |
| } | |
| `; | |
| document.head.appendChild(style); | |
| const add1 = document.querySelector('p.bq20'); | |
| if (add1) | |
| add1.insertAdjacentElement('afterend', document.createElement('hr')); | |
| const add2 = document.querySelector('h2#a61'); | |
| if (add2) | |
| add2.insertAdjacentElement('beforebegin', document.createElement('hr')); | |
| const add3 = document.querySelector('h2#a81'); | |
| if (add3) | |
| add3.insertAdjacentElement('beforebegin', document.createElement('hr')); | |
| const add4 = document.querySelector('div.fy26copyright'); | |
| if (add4) | |
| add4.insertAdjacentElement('beforebegin', document.createElement('hr')); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment