您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Resizes images to their raw size on tumblr
// ==UserScript== // @name Resize Tumblr Image On New Tab // @namespace TumblrImgResize // @version 1.1 // @description Resizes images to their raw size on tumblr // @homepageURL https://greasyfork.org/en/scripts/368408-resize-tumblr-image-on-new-tab // @run-at document-idle // @match http://*.media.tumblr.com/* // @match https://*.media.tumblr.com/* // @match http://secure.static.tumblr.com/* // @match https://secure.static.tumblr.com/* // ==/UserScript== function replace(){ var url = document.location.toString(); if((url.substring(url.lastIndexOf("_")+1, url.lastIndexOf("_")+5) === "1280") === false){ location.replace((url.substring(0, url.lastIndexOf("_")+1) + "1280" + url.substring(url.lastIndexOf(".")))); } } replace();