您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace Pixiv medium page's image with original image
当前为
// ==UserScript== // @name Pixiv Medium Page Replace With Original // @namespace https://blog.maple3142.net/ // @version 0.1 // @description Replace Pixiv medium page's image with original image // @author maple3142 // @match https://www.pixiv.net/member_illust.php?mode=medium&illust_id=* // @run-at document-start // @grant none // ==/UserScript== (function() { 'use strict' const PREFIX=Math.random().toString(36) Object.defineProperty(Object.prototype,'props',{ set(v){ this[PREFIX+'_props']=v if(v.urls)onTarget(this) }, get(v){ return this[PREFIX+'_props'] } }) const keys=['mini','regular','regular','thumb'] function onTarget(target){ const url=target.props.urls.original target.props.urls=new Proxy({},{ get: ()=>url }) } })()