// ==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://greasyfork.org/*/scripts* //@exclude https://greasyfork.org/*/scripts/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; const page = +new URLSearchParams(document.location.search).get('page')||1; const q= ``; document.documentElement.insertAdjacentHTML('afterbegin', q); //document.querySelector("#browse-script-list").style.counterReset =`section ${(page-1)*50 -1}` })();