Greasy Fork is available in English.

BYR 修复旧域名图片

将旧域名的图片链接转为相对链接

// Copyright 2022 shadows
//
// Distributed under MIT license.
// See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
// ==UserScript==
// @name         BYR 修复旧域名图片
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  将旧域名的图片链接转为相对链接
// @author       shadows
// @license      MIT License
// @include      /^https?://byr\.pt/.*$/
// @icon         https://byr.pt/favicon.ico
// @grant        none
// ==/UserScript==
'use strict';
window.addEventListener('load', function () {
var e = document.querySelectorAll(".rowfollow img");
for (var i = 0; i < e.length; i++) {
e[i].src = e[i].src.replace(/http(s)?:\/\/(bt\.byr\.cn|bt\.byr\.cn\.ipv(4|6)\.sixxs\.org)\//i, "/");
}
})