您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically redirect to the ALL Steps page on Instructables, if not already there.
// ==UserScript== // @name Instructables AllSteps Single Page View // @namespace https://greasyfork.org/users/2329-killerbadger // @version 0.1.1 // @description Automatically redirect to the ALL Steps page on Instructables, if not already there. // @match http*://*.instructables.com/id/* // ==/UserScript== //Based upon New York Times Single Page View by Fat Knowledge - http://userscripts.org/scripts/show/15601 // Get the current window location var curLoc = window.location.href; // Get the html text //var bodyText = document.body.textContent; //Not needed for this application // ------------------------------------------------------------------------ // Redirect to single page view if option is not already selected // ------------------------------------------------------------------------ if (curLoc.indexOf("id") != -1 && curLoc.indexOf("ALLSTEPS") == -1) { if (curLoc.indexOf("?")!=-1){ var newLoc = curLoc+'&ALLSTEPS'; } else { var newLoc = curLoc+'?ALLSTEPS'; } window.location.replace(newLoc); } else { /* Do Nothing */ }