Greasy Fork is available in English.

Fake script spam remover

Replaces the spam from that site that sells something to crack some chinese porn site with a spam alert

// ==UserScript==
// @name        Fake script spam remover
// @namespace   StephenP
// @match       https://greasyfork.org/*/scripts/*
// @match       https://hj.rainyun.click/*
// @match       https://hj.hbyvipxnzj.buzz/*
// @include     *://hj*.*/*
// @include     *://*.hj*.*/*
// @include     *://*.hai*.*/*
// @include     *://hai*.*/*
// @include     *://hj*/*
// @include     *://*.hj*/*
// @include     */post/details/*
// @match       *://*/post/details*
// @grant       none
// @version     1.2.2
// @author      StephenP
// @description Replaces the spam from that site that sells something to crack some chinese porn site with a spam alert
// ==/UserScript==
if(document.location.host=="greasyfork.org"){
  const spamSite=/hj\.hbyvipxnzj\.buzz|79565271@qq|hj\.rainyun\.click/g;
  const title=document.body.getElementsByTagName("h2");
  const aI=document.getElementById("additional-info");
  const sD=document.getElementById("script-description");
  if(aI){
    if(aI.textContent.match(spamSite)){
      aI.textContent="The additional notes of the script have been hidden as they were spam."
    }
  }
  if(sD){
    if(sD.textContent.match(spamSite)){
      sD.textContent="The description of the script has been hidden as it's spam."
    }
  }
  if(title){
    if(title[0].textContent.match(spamSite)){
      title[0].textContent="The title of the script has been hidden as it was spam."
    }
  }
}
else if(document.location.href.includes("/user/authentication/register")){ //prevents user registration
    const captcha=document.querySelector("img[src$='action=register']")
    var fakeCaptcha=captcha.cloneNode();
    fakeCaptcha.removeAttribute("onclick");
    captcha.style.display="none";
    fakeCaptcha.src=fakeCaptcha.src+"s";
    captcha.parentNode.appendChild(fakeCaptcha);
    captcha.remove();
}