Greasy Fork镜像 is available in English.

Better GreasyFork Code Reader

Show the Codes page of any script on GreasyFork With all code lines background in white

Від 02.01.2021. Дивіться остання версія.

// ==UserScript==
// @name         Better GreasyFork Code Reader
// @namespace    BetterGreasyCodeReader
// @version      0.2
// @description  Show the Codes page of any script on GreasyFork With all code lines background in white
// @author       hacker09
// @include      /^https:\/\/greasyfork\.org\/(?:[^\/]+\/)scripts\/(?:[^\/]+\/)code/
// @icon         https://www.google.com/s2/favicons?domain=greasyforks.org
// @run-at       document-end
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
    setTimeout(function(){
      if (document.querySelector("li.current").innerText === "Code") { //Run only on the Code page
        var Lines = document.querySelectorAll("li"); //Create a variable to hold the total Code Lines
        for (var i = Lines.length; i--;) { //Starts the for condition
          Lines[i].style.background = 'none'; //Remove the grey line background
        } //Finishes the for condition
      } //Finishes the if condition
    }, 500);
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。