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!

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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){}
}