自动避开核心区

躲开垃圾的核心区,直入主题

目前为 2020-06-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         自动避开核心区
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  躲开垃圾的核心区,直入主题
// @author       Uncle
// @match        https://tieba.baidu.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var url = document.location.toString();
  var arrUrl = url.split("&");
    if(document.getElementsByClassName("focus j_tbnav_tab")[0].innerText == "核心区"){
        //alert(arrUrl[0]+"&"+arrUrl[1]+"&" + "tab=main")
        self.location.href=arrUrl[0]+"&"+arrUrl[1]+"&" + "tab=main"
    }
    // Your code here...
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址