NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name No Resize Limited (minified) for "Open Image in..." // @version 1.14 // @description PrTimes, Twitter, realsound.jp, ameba blog, cloudfront/amazon aws uploads, lisani, partial natalie, stayluck, seigura/gallery server, lnk.to, news.yahoo.co.jp // @author netheoc // @license MIT // @grant none // @match http*://prtimes.jp/i/* // @match http*://pbs.twimg.com/media* // @match *.cloudfront.net/wp-content/uploads/* // @match http*://realsound.jp/wp-content/uploads* // @match http*://stat.ameba.jp/user_images* // @match *.amazonaws.com/* // @match *.lisani.jp/admin/wp-content/uploads/* // @match http*://ogre.natalie.mu/media/* // @match http*://stay-luck.com/wp-content/* // @match http*://seigura.com/* // @match http*://seigura.secureserv.jp/* // @match http*://linkstorage.linkfire.com/medialinks/images/* // @match http*://newsatcl-pctr.c.yimg.jp/* // ==/UserScript== var aA,bB,tR="",rW="",loO=document.location,oU=loO.toString(),nU="";function repURL(e,o,c){var n=e.replace(o,c);document.location.replace(n)}window.onerror=function(e,o,c,n,a){console.log(e,o,a)},window.addEventListener("error",function(e){console.log(e.toString())}),oU.includes("prtimes.jp/i")&&oU.includes("resize")?repURL(oU,tR="resize",rW="orig"):oU.includes("pbs.twimg.com/media")?oU.includes("&name=small")&&(rW=(tR=loO.search).slice(0,tR.indexOf("&name")),repURL(oU,tR,rW)):oU.includes("ogre.natalie.mu")&&""!=loO.search?repURL(oU,tR=loO.search,rW=""):(oU.includes("realsound.jp")||oU.includes("lisani.jp"))&&oU.search(/-\d{3,4}x\d{3,4}\./g)>-1?(aA=oU.search(/-\d{3,4}x\d{3,4}\./g),bB=oU.match(/-\d{3,4}x\d{3,4}\./g).toString().length-1,nU=oU.slice(0,aA)+oU.slice(aA+bB),document.location.replace(nU)):oU.includes("stay-luck.com")&&oU.search(/-\d{3,4}x\d{3,4}\./g)>-1?(aA=oU.search(/-\d{3,4}x\d{3,4}\./g),bB=oU.match(/-\d{3,4}x\d{3,4}\./g).toString().length-1,nU=oU.slice(0,aA)+oU.slice(aA+bB),document.location.replace(nU)):(oU.includes("cloudfront.net")||oU.includes("amazonaws.com"))&&oU.search(/-\d{3,4}x\d{3,4}\./g)>-1?(aA=oU.search(/-\d{3,4}x\d{3,4}\./g),bB=oU.match(/-\d{3,4}x\d{3,4}\./g).toString().length-1,nU=oU.slice(0,aA)+oU.slice(aA+bB),document.location.replace(nU)):oU.includes("linkstorage.linkfire.com")&&oU.search(/-\d{3,4}x\d{3,4}\./g)>-1?(aA=oU.search(/-\d{3,4}x\d{3,4}\./g),bB=oU.match(/-\d{3,4}x\d{3,4}\./g).toString().length-1,nU=oU.slice(0,aA)+oU.slice(aA+bB),document.location.replace(nU)):oU.includes("seigura.com")?(oU.includes("-scaled")&&(aA=oU.indexOf("-scaled"),bB=oU.indexOf(".jp"),nU=oU.slice(0,aA)+oU.slice(bB,oU.length),document.location.replace(nU)),oU.search(/-\d{3,4}x\d{3,4}\./g)>-1&&(aA=oU.search(/-\d{3,4}x\d{3,4}\./g),bB=oU.match(/-\d{3,4}x\d{3,4}\./g).toString().length-1,nU=oU.slice(0,aA)+oU.slice(aA+bB),document.location.replace(nU))):oU.includes("seigura.secureserv.jp")?oU.includes("_sample")&&(aA=oU.indexOf("_sample"),bB=oU.indexOf(".jpg"),nU=oU.slice(0,aA)+oU.slice(bB,oU.length),document.location.replace(nU)):oU.includes("stat.ameba")&&loO.search.length>2?repURL(oU,tR=loO.search,rW=""):oU.includes("newsatcl-pctr.c.yimg.jp")&&""!=loO.search&&repURL(oU,tR=loO.search,rW="");//