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.

// ==UserScript==
// @name        Swiftuploads - Remove Ads
// @namespace    https://gf.qytechs.cn/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');
  }
})();

QingJ © 2025

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