您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
替换百度贴吧的“我的贴吧”链接,使其跳转到“我的贴子”页面
// ==UserScript== // @name 百度贴吧我的贴吧跳转到我的帖子 // @namespace https://osu.ppy.sh/u/376831 // @version 1.3 // @description 替换百度贴吧的“我的贴吧”链接,使其跳转到“我的贴子”页面 // @author wcx19911123 // @match *tieba.baidu.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; var count = 0; var setting = { "我的贴吧":{ "href":"http://tieba.baidu.com/i/i/my_tie", "target":"_blank" }, "我的商城":{ "href":"https://ufo.baidu.com/listen/myhistory?product_line=90649&appid=222251&type=myhistory", "target":"_blank", "html":"我的反馈" } }; var eventId = setInterval(()=>{ //console.log($("div.u_ddl_con_top a").length); $("div.u_ddl_con_top a").each((i,o)=>{ //console.log("each", $(o).html()); for(var key in setting){ if($(o).html().includes(key)){ //console.log("includes", $(o).html()); $(o).attr("href",setting[key].href); $(o).attr("target",setting[key].target); if(setting[key].html){ $(o)[0].innerHTML = setting[key].html; } count++; break; } } }); if(count>=2){ clearInterval(eventId); } },500); /*var delSetting = ['div.dialog_block.j_itb_block', 'div.dialogJ.dialogJfix.dialogJshadow']; var delEventId = setInterval(()=>{ delSetting.forEach((o)=>{ if($(o).length){ $(o).remove(); } }); },500);*/ })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址