Open the F**king URL Right Now

自动跳转某些网站不希望用户直达的外链

目前为 2020-10-07 提交的版本。查看 最新版本

// ==UserScript==
// @name           Open the F**king URL Right Now
// @description    自动跳转某些网站不希望用户直达的外链
// @author         OldPanda
// @match          http://t.cn/*
// @match          https://www.jianshu.com/go-wild?*
// @match          https://link.zhihu.com/?target=*
// @version        0.1.0
// @run-at         document-idle
// @namespace      https://old-panda.com/
// @require        https://code.jquery.com/jquery-3.5.1.min.js
// ==/UserScript==

$(document).ready(function () {
  if (window.location.href.indexOf("http://t.cn/") != -1) {
    if ($(".wrap .desc").first().text() === "如需浏览,请长按网址复制后使用浏览器访问") {
      window.location.replace($(".wrap .link").first().text());
    }
  } else if (window.location.href.indexOf("https://www.jianshu.com/go-wild?") != -1) {
      let fakeUrl = new URL(window.location.href);
      let trueUrl = fakeUrl.searchParams.get("url");
      window.location.replace(trueUrl);
  } else if (window.location.href.indexOf("https://link.zhihu.com/?target=") != -1) {
      window.location.replace($(".content .link").first().text());
  }
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址