您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes "download image" open in same window not in new little one
// ==UserScript== // @name DeviantArt direct download image // @namespace devart // @include http://*.deviantart.com/* // @match http://*.deviantart.com/* // @grant unsafeWindow // @version 0.0.1.20140803173200 // @description Makes "download image" open in same window not in new little one // ==/UserScript== function ev(q){return document.evaluate(q,document.body,null,9,null).singleNodeValue;} if (window.location.href.match('http:\/\/.*\.deviantart\.com\/.*art\/.*')) { var alink = ev('.//a[contains(@class,"download")]'); if (alink) { alink.outerHTML = alink.outerHTML.replace("return D", "return window.location.href=this; D"); } } // they made some stupid background-loading instead of normal one, switching back to normal if (typeof unsafeWindow === "undefined"){unsafeWindow = window;} if (typeof exportFunction === "undefined") { unsafeWindow.window.history.__proto__.pushState= function (a,b,url) { window.location.href = url; } } else // FF 31 { function Opn(a,b,url) { window.location.href = url; } exportFunction(Opn, unsafeWindow.window.history.__proto__, {defineAs: "pushState"}); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址