Tumblr Image URL Redirect

Redirects Tumblr Image URLs to the raw version

As of 22/06/2017. See the latest version.

// ==UserScript==
// @name        Tumblr Image URL Redirect
// @description Redirects Tumblr Image URLs to the raw version
// @version     1.0
// @namespace   justausername
// @include     *.media.tumblr.com*
// @run-at      document-start
// ==/UserScript==

if(window.location.href.indexOf("_1280") > -1) {
       window.location = window.location.href.replace( "_1280", "_raw" );
}

if(window.location.href.indexOf("_540") > -1) {
       window.location = window.location.href.replace( "_540", "_raw" );
}

if(window.location.href.indexOf("_500") > -1) {
       window.location = window.location.href.replace( "_500", "_raw" );
}

if(window.location.href.indexOf("_400") > -1) {
       window.location = window.location.href.replace( "_400", "_raw" );
}

if(window.location.href.indexOf("_250") > -1) {
       window.location = window.location.href.replace( "_250", "_raw" );
}

if(window.location.href.indexOf("_100") > -1) {
       window.location = window.location.href.replace( "_100", "_raw" );
}
长期地址
遇到问题?请前往 GitHub 提 Issues。