GreasyFork hide scripts for author or word

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

  1. // ==UserScript==
  2. // @name GreasyFork hide scripts for author or word
  3. // @name:es GreasyFork oculta scripts por autor o palabra
  4. // @namespace https://greatest.deepsurf.us/es/users/758165-alexito
  5. // @description Adds an X button at the top left in GreasyFork that hides scripts by author or word
  6. // @match https://greatest.deepsurf.us/*/scripts*
  7. // @grant none
  8. // @version 1.1
  9. // @author AlExito
  10. // @description:es Agrega un boton X en la parte superior izquierda en GreasyFork que oculta scripts por autor o palabra
  11. // @noframes
  12. // @license MIT feel free to modify improve and share
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. var buttonkill = document.createElement("div");
  17. 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;");
  18. buttonkill.title="Remove scripts";
  19. buttonkill.append('X');
  20. buttonkill.onclick = function() {action()};
  21. document.body.append(buttonkill);
  22.  
  23. function action() {
  24. var scriptslist = /W0RD5|Bilibili|N4M35|lUSER69/i;
  25. document.querySelectorAll("#browse-script-list > li").forEach(function(e){
  26. var elechild = e.innerText.split("\n");
  27. for ( i=0; i < elechild.length; i++){
  28. if(elechild[i].match(scriptslist)){
  29. e.remove();
  30. };
  31. };
  32. });
  33. };
  34. })();