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.20160128055348
// ==/UserScript==
var oldUrlPath = window.location.pathname;
/*--- Test that "?mode=guest_open" is at end of URL, excepting any "hashes"
or searches.
*/
if ( ! /\?mode=guest_open$/.test (oldUrlPath) ) {
var newURL = window.location.protocol + "//"
+ window.location.host
+ oldUrlPath + "?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);
}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址