Remove HTML Hidden Links

Remove hidden links on modern HTML anchor elements. a.href should ALWAYS be the real link. DOWN WITH W3 CONSORTIUM! DOWN WITH THE INTERNET TAKEOVER! DEATH TO THE CONSPIRATORS!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        Remove HTML Hidden Links
// @namespace   http://98y89hurdfg
// @include     https://*
// @include     http://*
// @description Remove hidden links on modern HTML anchor elements.  a.href should ALWAYS be the real link.  DOWN WITH W3 CONSORTIUM! DOWN WITH THE INTERNET TAKEOVER!  DEATH TO THE CONSPIRATORS!
// @version     1.1.1
// @grant       none
// ==/UserScript==


var a = document.getElementsByTagName("a");
for (var x=1; x<=a.length; x++) {
  try {
  if (a[x].getAttribute("data-outbound-url")) {
    a[x].removeAttribute("data-outbound-url");
  }} catch(e){}
  try {
  if (a[x].getAttribute("data-href-url")) {
    a[x].removeAttribute("data-href-url");
  }} catch(e){}
  try {
  if (a[x].getAttribute("data-outbound-expiration")) {
    a[x].removeAttribute("data-outbound-expiration");
  }} catch(e){}
  try {
  if (a[x].getAttribute("data-event-action")) {
    a[x].removeAttribute("data-event-action");
  }} catch(e){}
  try {
  if (a[x].getAttribute("rel")) {
    a[x].removeAttribute("rel");
  }} catch(e){}
  try {
  if (a[x].getAttribute("data-inbound-url")) {
    a[x].removeAttribute("data-inbound-url");
  }} catch(e){}
}