Skip to content

Instantly share code, notes, and snippets.

@MewX
Last active May 16, 2022 05:05
Show Gist options
  • Save MewX/cc1a553aef069631335f0469212ae1ae to your computer and use it in GitHub Desktop.
Save MewX/cc1a553aef069631335f0469212ae1ae to your computer and use it in GitHub Desktop.
Disquz auto enter full mode
// ==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