GreasyFork hide scripts for author or word

Adds an X button at the top left in GreasyFork that hides scripts by author or word

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name             GreasyFork hide scripts for author or word
// @name:es            GreasyFork oculta scripts por autor o palabra
// @namespace    https://greasyfork.org/es/users/758165-alexito
// @description     Adds an X button at the top left in GreasyFork that hides scripts by author or word
// @match            https://greasyfork.org/*/scripts*
// @grant            none
// @version         1.1
// @author            AlExito
// @description:es   Agrega un boton X en la parte superior izquierda en GreasyFork que oculta scripts por autor o palabra
// @noframes
// @license        MIT   feel free to modify improve and share
// ==/UserScript==

 (function() {
    var buttonkill = document.createElement("div");
    buttonkill.setAttribute("style", "z-index:9999;position:fixed;top:1px;left:1px;background:#037;color:#fff; border:0px solid #fff;text-align:center;line-height:14px;width:14px;font-size:14px!important;cursor:default;");
    buttonkill.title="Remove scripts";
    buttonkill.append('X');
    buttonkill.onclick = function() {action()};
    document.body.append(buttonkill);

function action() {
    var scriptslist = /W0RD5|Bilibili|N4M35|lUSER69/i;
document.querySelectorAll("#browse-script-list > li").forEach(function(e){
   var elechild = e.innerText.split("\n");
          for ( i=0; i < elechild.length; i++){
              if(elechild[i].match(scriptslist)){
              e.remove();
     };
  };
});
};
})();