Sort Number for Greasy Fork镜像 Scripts

腳本清單頁顯示排名序號,翻頁自動追加序號

目前為 2021-04-15 提交的版本,檢視 最新版本

// ==UserScript==
// @name            Sort Number  for Greasy Fork镜像 Scripts
// @name:zh         脚本列表排序
// @name:en        Sort Number  for Greasy Fork镜像 Scripts
// @description   腳本清單頁顯示排名序號,翻頁自動追加序號
// @description;zh   脚本列表页显示排名序号, 翻页自动追加序号
// @description:en   Show order number  for Greasy Fork镜像 script list page, for every page
// @namespace    https://github.com/Germxu
// @homepage     https://github.com/Germxu/Scripts-for-TamperMonkey
// @supportURL   https://github.com/Germxu/Scripts-for-TamperMonkey/issues/new
// @version      0.2
// @author       Finn
// @run-at       document-start
// @match        https://gf.qytechs.cn/*/scripts*
//@exclude       https://gf.qytechs.cn/*/scripts/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const page = +new URLSearchParams(document.location.search).get('page')||1;
    const q= `<style>#browse-script-list{counter-reset: section ${(page-1)*50 -1};}.ad-entry{height: 0;overflow: hidden;}#browse-script-list li{position:relative}
                #browse-script-list li:after{counter-increment: section;content:counter(section);font:bold 20px/30px Arial;color: #29b6f6;position:absolute;bottom:8px;right:15px}</style>`;
    document.documentElement.insertAdjacentHTML('afterbegin', q);

   //document.querySelector("#browse-script-list").style.counterReset =`section ${(page-1)*50 -1}`
})();

QingJ © 2025

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