水木社区web转APP

将水木pc版转换为app效果

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         水木社区web转APP
// @namespace    https://www.newsmth.top/
// @version      1.1
// @description  将水木pc版转换为app效果
// @author       tiewuzi
// @match        https://www.newsmth.net/nForum/*
// @match        https://static.mysmth.net/*
// @match        https://static.newsmth.net/*
// @license      MIT
// @run-at       document-start
// @icon         https://www.newsmth.top/favicon.ico
// @noframes
// ==/UserScript==

(function () {
    'use strict';
    if (window.newsmth_to_app) {
        return;
    } else {
        window.newsmth_to_app = true;
    }
    let sc = document.createElement('script');
    sc.charset = 'UTF-8';
    sc.src = 'https://fastly.jsdelivr.net/gh/beishuitang/[email protected]/dist/smth_to_app.iife.js'
    sc.type = 'text/javascript';
    document.querySelector('head').appendChild(sc);
})();