您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
5ちゃんねるのh抜きリンクをリンクにする
// ==UserScript== // @name 5ch_hnuki_link // @namespace https://catherine.v0cyc1pp.com/5ch_hnuki_link.user.js // @match http://*.5ch.net/* // @match https://*.5ch.net/* // @author greg10 // @run-at document-end // @license GPL 3.0 // @version 1.3 // @grant none // @description 5ちゃんねるのh抜きリンクをリンクにする // @license MIT // ==/UserScript== console.log("5ch_hnuki_link start"); //https://mevius.5ch.net/test/read.cgi/kitchen/1548549321/l50 //ttps://upload.wikimedia.org/wikipedia/commons/6/6f/Earth_Eastern_Hemisphere.jpg // 置換 function makelink() { document.querySelectorAll("span.escaped").forEach(function(obj) { var html = obj.innerHTML; console.log("html="+html); if ( html.match(/ttp/) ) { if ( ! html.match(/http/) ) { console.log("h-nuki"); //var newhtml = html.replace(/ttp:[^ ]+/,"<a href=\"$&\">$&</a>"); var newhtml = html.replace(/ttp[^ ]+/g,"<a href=\"h$&\">$&</a>"); console.log("newhtml="+newhtml); obj.innerHTML = newhtml; } } }); } function main() { makelink(); } main();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址