Greasy Fork

Asura Scans Comments Remover

Removes Asura Scans comments

目前为 2025-03-07 提交的版本。查看 最新版本

// ==UserScript==
// @name        Asura Scans Comments Remover
// @namespace   Violentmonkey Scripts
// @match       https://asuracomic.net/*
// @grant       none
// @version     1.0
// @author      Jacob68
// @description Removes Asura Scans comments
// @license     GNU GPLv3
// ==/UserScript==

(function() {
  
  function removeThread() {
    const element = document.querySelector('.p-4.space-y-4');
    if (element) {
      element.remove();
      console.log("Thread Removed");
      return true;
  }
    return false;
  }

  removeThread();

const observer = new MutationObserver(() => {
    if (removeThread()) {
      observer.disconnect(); 
    }
  });

  observer.observe(document.body, {
    childList: true,
    subtree: true,
  });


  setTimeout(() => observer.disconnect(), 5000);
  
})();