Last active
May 16, 2022 05:05
-
-
Save MewX/cc1a553aef069631335f0469212ae1ae to your computer and use it in GitHub Desktop.
Disquz auto enter full mode
This file contains 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 Disquz auto full mode | |
// @namespace http://mewx.org/ | |
// @version 0.1 | |
// @description Automatically load the full text version. | |
// @author MewX | |
// @match https://www.oursteps.com.au/bbs/archiver/* | |
// @match http://www.oursteps.com.au/bbs/archiver/* | |
// @match https://oursteps.co/bbs/archiver/* | |
// @match http://oursteps.co/bbs/archiver/* | |
// @icon https://www.google.com/s2/favicons?domain=oursteps.com.au | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let as = document.getElementsByTagName('a'); | |
for (let i = 0; i < as.length; i ++) { | |
if (as[i].href.indexOf("viewthread") != -1) { | |
as[i].target = "_self"; | |
as[i].click(); | |
break; | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment