Swiftuploads - Remove Ads

Deletes the "ads" button if an "org" button exists, or removes the onclick attribute from "ads" if it's alone. Also removes "hidden" class from "org" button.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        Swiftuploads - Remove Ads
// @namespace    https://greasyfork.org/en/users/807108-jeremy-r
// @version      1
// @description  Deletes the "ads" button if an "org" button exists, or removes the onclick attribute from "ads" if it's alone. Also removes "hidden" class from "org" button.
// @author       JRem
// @match        https://www.swiftuploads.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
  'use strict';

  const orgButton = document.getElementById('org');
  const adsButton = document.getElementById('ads');

  if (orgButton) {
    adsButton.remove();
    orgButton.classList.remove('hidden'); // Remove hidden class
  } else if (adsButton) {
    adsButton.removeAttribute('onclick');
  }
})();