// ==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 // @downloadURL 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 }) } })()