// ==UserScript== // @name GreasyFork Total Scripts // @namespace pxgamer // @version 0.2.1 // @description Shows a user's total scripts count on GreasyFork // @author pxgamer // @include *greasyfork.org/en/users/* // @grant none // @downloadURL https://update.greasyfork.icu/scripts/20343/GreasyFork%20Total%20Scripts.user.js // @updateURL https://update.greasyfork.icu/scripts/20343/GreasyFork%20Total%20Scripts.meta.js // ==/UserScript== /*jshint multistr: true */ (function() { 'use strict'; let l = $('li[data-script-id]').length; if (l == 1) { $('div.width-constraint h2:first').append(' [' + l + ' Total Script]'); } else { $('div.width-constraint h2:first').append(' [' + l + ' Total Scripts]'); } })();