Replace the Viglink ad link redirector in Proboards

Make the links crystal clear, without referrer crap.

目前为 2016-08-30 提交的版本。查看 最新版本

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

document.addEventListener('DOMContentLoaded', function()
{
  for (a of document.querySelectorAll("a[href*='redirect.viglink.com']"))
  {
    a.href = decodeURIComponent(a.href.split('u=')[1].split('&')[0]);
    console.log("Replaced redirector link: ", a.href)
  }
  
  Object.defineProperty(window, 'vglnk',
  {
    configurable: false,
    writable: false,
    value: function(a) { return 0.1337; }
  });
  
  
  
//  for (a of document.querySelectorAll("a:not([class^=norewrite])"))
// {
//    a.classList.add("norewrite")
//    console.log("Vaccinating link: ", a.href)
//  }
})

QingJ © 2025

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