Shows a user's total downloads.
当前为
// ==UserScript==
// @name Greasy Fork Total Downloads
// @namespace -
// @version 0.1
// @description Shows a user's total downloads.
// @author NotYou
// @include *greasyfork.org/*/users/*
// @license GPLv3
// @license-link https://www.gnu.org/licenses/gpl-3.0.txt
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @grant none
// ==/UserScript==
$(document).ready(function(){
let totalDownloads = 0;
$('dd.script-list-total-installs span').each(function() {
totalDownloads += Number($(this).text());
console.log(totalDownloads)
});
$('div.sidebarred-main-content h3:first').append('<span style="font-size: 15px;font-variant: normal;color: rgb(123, 23, 23);"> [ ' + totalDownloads + ' Total Installs]</span>');
});