Greasy Fork is available in English.

Viglink Redirection Suppressor

10/24/2023, 8:08:02 PM

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Viglink Redirection Suppressor
// @namespace   Violentmonkey Scripts
// @match       https://untoldtales.proboards.com/*
// @grant       none
// @license     MIT
// @version     1.0
// @author      catsoft
// @description 10/24/2023, 8:08:02 PM
// ==/UserScript==

var scriptWatcher = new MutationObserver(function (mutationsList, observer) {
  for (var mutation of mutationsList) {
    if (mutation.type === 'childList') {
      for (var node of mutation.addedNodes) {
        if (node.localName == "script" && node.type=="module" && node.innerText.includes("$(this).prop('href', 'http://redirect.vig")) {
          node.innerHTML = "\n return;"+node.innerHTML
          console.log("sucessfully prevented script from tracking links: ",node)
          scriptWatcher.disconnect()
        }}}}})
scriptWatcher.observe(document, { childList: true, subtree: true });