Better GreasyFork Code Reader

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

目前为 2020-12-20 提交的版本。查看 最新版本

// ==UserScript==
// @name         Better GreasyFork Code Reader
// @namespace    BetterGreasyCodeReader
// @version      0.1
// @description  Show the Codes page of any script on GreasyFork With all code lines background in white
// @author       hacker09
// @match        https://gf.qytechs.cn/*
// @icon         https://www.google.com/s2/favicons?domain=gf.qytechs.cn
// @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);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址