Greasy Fork Theme figuccio

Greasy Fork pagina di colore violet

当前为 2021-09-04 提交的版本,查看 最新版本

// ==UserScript==
// @name           Greasy Fork Theme figuccio
// @namespace      https://greasyfork.org/users/237458
// @description    Greasy Fork pagina di colore violet
// @include        https*://*greasyfork.org*
// @include        https*://sleazyfork.org*
// @version        0.7
// @noframes
// @author         figuccio
// @run-at         document-start
// @grant          GM_addStyle
// @grant          GM_setValue
// @grant          GM_getValue
// @grant          GM_registerMenuCommand
// @require        https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js
// @match          *://greasyfork.org/*/script_versions/new*
// @match          *://greasyfork.org/*/scripts/*/versions/new*
// @require        https://gitcdn.link/repo/fuzetsu/userscripts/b38eabf72c20fa3cf7da84ecd2cefe0d4a2116be/wait-for-elements/wait-for-elements.js
// ==/UserScript==
GM_addStyle(' body {background-color:violet!important;}');//cambio colore pagina
GM_addStyle('.script-list{background-color:olive!important;}');
//mostra risultato per tutte le lingue
if (document.URL == "https://greasyfork.org/it/scripts") window.location.href = "https://greasyfork.org/it/scripts?filter_locale=0";
if (document.URL == "https://sleazyfork.org/it/scripts" ) window.location.href = "https://sleazyfork.org/it/scripts?filter_locale=0";

//autoclick pagina successiva
 $(window).scroll(function() {
   if($(window).scrollTop() + $(window).height() == $(document).height()) {
  var class_name = "next_page";
  var bt = document.getElementsByClassName(class_name)[0];
  bt.click();
  }
});
/////////////autoclick casella editor checkbox
(() => {
  'use strict';
  waitForElems({
    sel: '#enable-source-editor-code',
    stop: true,
    onmatch(checkbox) {
      checkbox.click();
    }
  });
})();