GreasyFork Total Scripts

Shows a user's total scripts count on GreasyFork

< 腳本GreasyFork Total Scripts的回應

評論:正評 - 腳本一切正常

§
發表於:2020-06-27
編輯:2020-06-27

Work well:
Thanks!
But... Need to change the @include for all language:
// @include *greasyfork.org/*/users/*

PS:
If i use [TS] Citrus GFork ,
your Seems don't count the number of scripts:
On your profile page, i see 0.
Can you make a fix for it ??
I make a test, which work for it but i don't know how to have both case working...
My test:
(function() {
'use strict';

let l = $('#script-table tbody tr').length;
if (l == 1) {
$('div.width-constraint h2:first').append(' [' + l + ' Total Script]');
}
else {
$('div.width-constraint h2:first').append(' [' + l + ' Total Scripts]');
}
})();

發表回覆

登入以回覆