您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces all imgur links and pictures with mirror links
// ==UserScript== // @name imgur to mirror // @version 0.2 // @description Replaces all imgur links and pictures with mirror links // @include *://*/* // @namespace https://gf.qytechs.cn/users/710 // ==/UserScript== var a = document.getElementsByTagName('a'); for (i=0;i<a.length;i++) { p = /imgur\.com\/([A-Za-z0-9]+\.+[A-Za-z0-9]+)/; res = p.exec(a[i]); if (res!=null) { a[i].href = 'http://i.filmot.org/' + res[1]; } } var p = document.getElementsByTagName('img'); for (i=0;i<p.length;i++) { src = /imgur\.com\/([A-Za-z0-9\/]+\.+[A-Za-z0-9]+)/; res = src.exec(p[i].src); if (res!=null) { p[i].src = 'http://i.filmot.org/' + res[1]; } } var url = document.URL; reg = /imgur\.com\/([A-Za-z0-9]+\.+[A-Za-z0-9]+)?/; res = reg.exec(url); if (res!=null) { if (res[1] != null) location.replace("http://filmot.org/" + res[1]); else location.replace("http://filmot.org/"); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址