您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Breaks the original link out of StumbleUpon frames.
当前为
// ==UserScript== // @name StumbleOut // @version 1.4 // @author raina // @description Breaks the original link out of StumbleUpon frames. // @license http://www.gnu.org/licenses/gpl-3.0.txt // @namespace http://userscripts.org/users/315152 // @include http://www.stumbleupon.com/su/* // @run-at document-start // @grant none // ==/UserScript== (function() { "use strict"; var link, iframe, digger = function() { if (iframe === undefined) { iframe = document.getElementById('tb-stumble-frame'); if (iframe !== undefined) { window.location.href = iframe.src; } } }; if (window.self === window.top) { link = window.location.href.replace(/www\.stumbleupon\.com\/su\/[^\/]*(\/:[^\/]*)?\//, '').replace(/\/#?$/, ''); if (window.location.href !== link) { window.location.href = link; } else { document.addEventListener('readystatechange', digger, false); } } }());