您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
直接显示tumblr的图片为高清版
当前为
// ==UserScript== // @name display the images of tumblr in HD revolution directly // @description 直接显示tumblr的图片为高清版 // @version 1.5 // @include http://*.tumblr.com/* // @include https://*.tumblr.com/* // @author yechenyin // @namespace http://greasyfork.icu/users/3586-yechenyin // @require https://code.jquery.com/jquery-1.11.2.min.js // ==/UserScript== $(".post_wrapper").each(function() { console.log($(this).find(".post_media img").length); if ($(this).find(".post_media img").length > 0) { $(this).find(".photoset_photo img").each(function() { if (this.src != this.parentNode.href) this.src = this.parentNode.href; }); $(this).find(".post_media_photo").each(function() { if ($(this).parent().attr("data-big-photo") && this.src != $(this).parent().attr("data-big-photo")) { this.src = $(this).parent().attr("data-big-photo"); console.log(this.src); } }); } }); $(document).on('DOMNodeInserted', '.post_container', function(e) { if ($(e.target).hasClass('post_container')) { if ($(this).find(".post_media img").length > 0) { $(this).find(".photoset_photo img").each(function() { if (this.src != this.parentNode.href) this.src = this.parentNode.href; }); $(this).find(".post_media_photo").each(function() { if ($(this).parent().attr("data-big-photo") && this.src != $(this).parent().attr("data-big-photo")) { this.src = $(this).parent().attr("data-big-photo"); console.log(this.src); } }); } } });