Greasy Fork

Greasy Fork is available in English.

Weibo Big Picture

Mid-click "Full size" ("查看大图") to open full sized picture in new window/tab

目前为 2014-06-05 提交的版本,查看 最新版本

// ==UserScript==
// @name Weibo Big Picture
// @namespace http://yujiande.appspot.com
// @description Mid-click "Full size" ("查看大图") to open full sized picture in new window/tab
// @include *://weibo.com/*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
window.addEventListener("load", function() {
setInterval(function(){
$('a.show_big').attr("href", function(i, v) {
var action_data = $(this).attr("action-data");
var pid = action_data.replace(/.*\bpid=(\w+).*/, "$1");
var href = "//ww3.sinaimg.cn/large/" + pid;
return href;
});
}, 1000);
}, false);