您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork pagina colorata
当前为
- // ==UserScript==
- // @name Greasy Fork Theme figuccio
- // @namespace https://greasyfork.org/users/237458
- // @description Greasy Fork pagina colorata
- // @include https*://*greasyfork.org*
- // @include https*://sleazyfork.org*
- // @version 2.2
- // @noframes
- // @author figuccio
- // @grant GM_addStyle
- // @grant GM_setValue
- // @grant GM_getValue
- // @grant GM_registerMenuCommand
- // @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
- // @run-at document-start
- // @grant GM_openInTab
- // @grant GM_xmlhttpRequest
- // @icon https://www.google.com/s2/favicons?domain=greasyfork.org
- // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
- // @license MIT
- // ==/UserScript==
- window.onload = function() {
- var currentColor = 'violet';
- setInterval(function() {
- document.body.style.backgroundColor = currentColor;
- currentColor = currentColor === '#28768e75' ? '#008000ab' : '#28768e75';
- }, 5000);
- };
- //input casella ricerca script rossa
- GM_addStyle('.sidebar-search input{background-color:red!important;}');
- //colore parte centrale
- GM_addStyle('.script-list{background-color:#d4c515d1!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 pagina successiva
- $(window).scroll(function() {
- if($(window).scrollTop() + $(window).height() == $(document).height()) {
- // setTimeout(function(){
- document.querySelector("body > div > div > div.sidebarred-main-content > div.pagination > a.next_page").click();//}, 2000);
- }
- });
- /////////////autoclick casella editor checkbox
- (() => {
- 'use strict';
- waitForElems({
- sel: '#enable-source-editor-code',
- stop: true,
- onmatch(checkbox) {
- checkbox.click();
- }
- });
- })();
- // titolo degli script normalmente e rosso
- //GM_addStyle('.script-link, .user-link{color:blue!important;}');
- //colore nero descrizione script necessario perche se no lo scroll dark lo fara vedere bianco e non si vedra
- GM_addStyle('body, input, select {color:black!important;}');
- //////////////////codice sorgente colorato//////////////////////////////////////////////////////////////
- GM_addStyle('pre.prettyprint {background-color:#92ad92!important;border: 2px solid red!important;}');//1 stesso colore
- GM_addStyle('li.L1, li.L3, li.L5, li.L7, li.L9 {background-color:#92ad92!important;}');//2 stesso colore
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- //parte superiore codice sorgente colorata
- GM_addStyle('#script-info {border: 2px solid blue!important;background-color:aquamarine!important;}');
- //scrool dark
- var meta = document.createElement('meta');
- meta.name = "color-scheme";
- meta.content = "light dark";
- document.getElementsByTagName('head')[0].appendChild(meta);