imageresizer

Script to resize images on various sites

2017-10-26 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name        imageresizer
// @namespace   Javascript
// @description Script to resize images on various sites
// @include     *//pbs.twimg.com/media/*
// @include     *//images-na.ssl-images-amazon.com/*
// @include     *//shopping.toei-anim.co.jp/system-img/*
// @include     *//bandai-a.akamaihd.net/*
// @include     *.media.tumblr.com/*
// @include     *i.ebayimg.com/*
// @include     *whstatic.com/*
// @include     *wikimon.net/*
// @include     *wikihow.com/*
// @version     1.1
// @grant       none
// ==/UserScript==

if(window.location.href.match(/(pbs\.twimg\.com\/media\/[^.]+\.(jpg|png|gif))(:large)?(?!:orig)/))
{window.location.href=window.location.href.replace(/(pbs\.twimg\.com\/media\/[^.]+\.(jpg|png|gif))(:large)?(?!:orig)/, "$1:orig")};

if(window.location.href.match(/images-na\.ssl-images-amazon\.com\/images\/(.+)\._[A-z][A-z][0-9]+_\.(.+)$/))
{window.location.href=window.location.href.replace(/images-na\.ssl-images-amazon\.com\/images\/(.+)\._[A-z][A-z][0-9]+_\.(.+)$/, "images-na\.ssl-images-amazon\.com\/images\/$1\.$2")};

if(!window.location.href.match(/shopping\.toei-anim\.co\.jp\/system-img\/0\/0(\/.+$)/))
{if(window.location.href.match(/shopping\.toei-anim\.co\.jp\/system-img\/[0-9]+\/[0-9]+(\/.+$)/))
{window.location.href=window.location.href.replace(/shopping\.toei-anim\.co\.jp\/system-img\/[0-9]+\/[0-9]+(\/.+$)/, "shopping.toei-anim.co.jp/system-img/0/0$1")}}

if(!window.location.href.match(/bandai-a\.akamaihd\.net\/bc\/img\/model\/xl\//))
{if(window.location.href.match(/bandai-a\.akamaihd\.net\/bc\/img\/model\/[A-z][A-z]?\//))
{window.location.href=window.location.href.replace(/bandai-a\.akamaihd\.net\/bc\/img\/model\/[A-z][A-z]?\//, "bandai-a.akamaihd.net/bc/img/model/xl/")}}

if(!window.location.href.match(/media\.tumblr\.com\/([^\/]+)\/?([^\.]+_)1280/))
{
  
  if(window.location.href.match(/media\.tumblr\.com\/[^\/]+\/?[^\.]+_[0-9]+(\.jpg|.\png|\.gif)/))
{
  //alert("hop")
  window.location.href=window.location.href.replace(/media\.tumblr\.com\/([^\/]+\/?[^\.]+_)[0-9]+(\.jpg|.\png|\.gif)/, "media.tumblr.com/$11280$2")}}

if(!window.location.href.match(/i\.ebayimg\.com\/images\/[a-z]\/[^\/]+\/s-l9999\.png/))
{if(window.location.href.match(/i\.ebayimg\.com\/images\/[a-z]\/[^\/]+\/s-l[0-9]+/))
{window.location.href=window.location.href.replace(/s-l[0-9]+\.jpg/,"s-l9999.png")}}


if((window.location.href.match(/whstatic\.com/) || window.location.href.match(/wikimon\.net/)|| window.location.href.match(/wikihow\.com/)) && window.location.href.match(/thumb/))
  {
    window.location.href=window.location.href.replace(/\/[^\/]+$/,"").replace(/thumb\//,"")
  }