您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Creates a button to navigate to the weibo.com link from a m.weibo.cn link.
// ==UserScript== // @name Go to Weibo.com // @namespace http://tampermonkey.net/ // @version 0.1 // @description Creates a button to navigate to the weibo.com link from a m.weibo.cn link. // @author Sekaris // @match https://m.weibo.cn/status/* // @icon https://www.google.com/s2/favicons?domain=m.weibo.cn // @grant none // ==/UserScript== (function() { 'use strict'; window.addEventListener("load",function(){ var btn = document.createElement("button"); btn.innerHTML = "Go to Weibo.com"; var link = "https://weibo.com/" + $render_data.status.user.id + "/" + $render_data.status.bid; btn.onclick = () => { window.location.href=link; return false; }; btn.title = link; document.querySelector("h3.m-text-cut").before(btn); Object.assign(btn.style,{backgroundColor: "#eb7350", border: "none", color:"white", margin:"0 5px", padding:"10px", textAlign:"center", textDecoration:"none", display:"inline", borderRadius:"0px", float:"right", fontSize:"16px", zIndex:"50"}); btn.onmouseover = function() { this.style.backgroundColor = "#D52C2B"; }; btn.onmouseleave = function() { this.style.backgroundColor = "#EB7350"; }; }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址