Replace the ad link redirector in Proboards

Make the links crystal clear, without referer crap.

目前為 2016-07-01 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Replace the ad link redirector in Proboards
// @description Make the links crystal clear, without referer crap.
// @match       *://*.proboards.com/*
// @version     1
// @grant       none
// @run-at      document-start
// @namespace https://gf.qytechs.cn/users/4813
// ==/UserScript==

document.addEventListener('DOMContentLoaded', function()
{
  for (a of document.querySelectorAll("a[href*='redirect.viglink.com']"))
  {
    a.href = decodeURIComponent(a.href.substr(68));
    console.log("Replaced redirector link: ", a.href)
  }
  
  for (a of document.querySelectorAll("a:not([class^=norewrite])"))
  {
    a.classList.add("norewrite")
    console.log("Replaced redirector link: ", a.href)
  }
})

QingJ © 2025

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