您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
使用国内反代节点替换Pixiv日本图片节点
// ==UserScript== // @name Pixiv反代链接替换 // @namespace https://www.cccpserver.cf // @version 1.02 // @description 使用国内反代节点替换Pixiv日本图片节点 // @author HELPMEEADICE // @match *://www.pixiv.net/* // @license GPLv3 // @grant none // ==/UserScript== (function() { 'use strict'; function replacePximgLinks() { const links = document.querySelectorAll('a[href*="i.pximg.net"]'); const images = document.querySelectorAll('img[src*="i.pximg.net"]'); links.forEach(link => { link.href = link.href.replace(/i\.pximg\.net/g, 'i.pixivcat.com'); }); images.forEach(image => { image.src = image.src.replace(/i\.pximg\.net/g, 'i.pixivcat.com'); }); } replacePximgLinks(); // Listen for changes in the DOM, in case the page uses AJAX to load content const observer = new MutationObserver(replacePximgLinks); observer.observe(document.body, { subtree: true, childList: true }); })();