您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
针对b23.tv/xxx这样的链接,直接获取到真实地址的标题,以免用户点进去自己不想看到的内容
当前为
// ==UserScript== // @name LinkCheatGuradian_BiliBili // @namespace http://tampermonkey.net/ // @version 0.1 // @description 针对b23.tv/xxx这样的链接,直接获取到真实地址的标题,以免用户点进去自己不想看到的内容 // @author wlx0079 // @match *://www.bilibili.com/* // @icon https://i0.hdslb.com/bfs/album/5b628d8d94bbf2f80f8006f1f6865a3f977e51d2.jpg // @grant GM_xmlhttpRequest // ==/UserScript== var hashmap = new Map() function getTitle(text){ var myReg = new RegExp("<title.*title>"); var nt = text.match(myReg)[0]; var title = nt.split("<")[1]; title = title.split(">")[1]; title = title.split("_哔哩哔哩_bilibili")[0] return title; } function httpGet(theUrl,theSpan) { GM_xmlhttpRequest({ url: theUrl, method :"GET", onload:function(xhr){ var name = getTitle(xhr.responseText) if(!hashmap.has(theSpan.innerHTML)){ theSpan.innerHTML = theSpan.innerHTML + '<p style="font-family:verdana; color:rgb(70,60,220); font-weight:800; font-size:12pt">#诈骗检测:'+name+"</p>" hashmap.set(theSpan.innerHTML,1) } } }); } function Alter(){ console.log("bg") var links = document.getElementsByTagName("a") for (var i = 0 ; i < links.length ; ++i){ var url = links[i].href; if (url.search("b23.tv") != -1 ){ httpGet(url,links[i]) } } } function Main() { 'use strict' Alter(); } setInterval(Main,1500)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址