无须确认,直接跳转

让链接跳转提示自动跳转

目前為 2020-07-12 提交的版本,檢視 最新版本

// ==UserScript==
// @name          无须确认,直接跳转
// @namespace     Don't confirm, just redirect.
// @match         none
// @grant         none
// @version       0.0.1
// @author        -
// @description   让链接跳转提示自动跳转
// ==/UserScript==
if (/https?%3A(?:%2F%2F|\/\/)/.test(window.location.search))
  window.location.href = decodeURIComponent(
    window.location.search
      .replace(/^.*?(https?%3A(?:%2F%2F|\/\/))/, '$1')
      .replace(/&.*$/, '')
  );