MCBBS Extender —— Mobile DLC

An extra script to extend extender.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         MCBBS Extender —— Mobile DLC
// @namespace    https://i.zapic.cc/
// @version      beta-0.0.1
// @description  An extra script to extend extender.
// @author       Zapic
// @match        https://*.mcbbs.net/*
// @run-at       document-body
// ==/UserScript==

(()=>{
    // jQuery检查
    if (typeof jQuery == "undefined") {
        return false;
    }
    //在手机页面主动禁用
    if(document.getElementsByTagName('meta').viewport){
        return false;
    }
    let evt = "onorientationchange" in window ? "orientationchange" : "resize";
	jQuery(window).on(evt,resize);
    function resize() {
        jQuery(document.getElementsByTagName('meta').viewport).remove();
        jQuery("head").append('<meta name="viewport" content="width=device-width,initial-scale='+(0.0007*window.screen.availWidth).toString()+'">');
    }
    resize(true);
    jQuery(()=>{jQuery("#myprompt,.hd_t_a a").removeAttr("href");});
})();