您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When opening a Massdrop URL, check to see if "?mode=guest_open" is appended to the URL, and if not, append it. This will allow unregistered users to browse Massdrop.
// ==UserScript== // @name MassDrop Automatic Guest Mode // @namespace Symmetry // @match *://*.massdrop.com/* // @run-at document-start // @description When opening a Massdrop URL, check to see if "?mode=guest_open" is appended to the URL, and if not, append it. This will allow unregistered users to browse Massdrop. // @version 0.0.1.20160128061648 // ==/UserScript== /*--- Test that "?mode=guest_open" is at end of URL, excepting any "hashes" or searches. */ if ( ! /mode=guest_open/.test(window.location.search) ) { var newURL = window.location.protocol + "//" + window.location.host + window.location.pathname + "?mode=guest_open" + window.location.search + window.location.hash ; /*-- replace() puts the good page in the history instead of the bad page. */ window.location.replace (newURL); }