mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
Add default user count, update url
This commit is contained in:
@@ -7,7 +7,7 @@ import { Logger } from "../utils/logger";
|
|||||||
import { getCWSUsers, getChromeUsers } from "../utils/getCWSUsers";
|
import { getCWSUsers, getChromeUsers } from "../utils/getCWSUsers";
|
||||||
|
|
||||||
// A cache of the number of chrome web store users
|
// A cache of the number of chrome web store users
|
||||||
let chromeUsersCache = 0;
|
let chromeUsersCache = 30000;
|
||||||
let firefoxUsersCache = 0;
|
let firefoxUsersCache = 0;
|
||||||
|
|
||||||
interface DBStatsData {
|
interface DBStatsData {
|
||||||
@@ -64,7 +64,7 @@ async function getStats(): Promise<DBStatsData> {
|
|||||||
|
|
||||||
function updateExtensionUsers() {
|
function updateExtensionUsers() {
|
||||||
const mozillaAddonsUrl = "https://addons.mozilla.org/api/v3/addons/addon/dearrow/";
|
const mozillaAddonsUrl = "https://addons.mozilla.org/api/v3/addons/addon/dearrow/";
|
||||||
const chromeExtensionUrl = "https://chrome.google.com/webstore/detail/enamippconapkdmgfgjchkhakpfinmaj";
|
const chromeExtensionUrl = "https://chromewebstore.google.com/detail/dearrow-better-titles-and/enamippconapkdmgfgjchkhakpfinmaj";
|
||||||
const chromeExtId = "enamippconapkdmgfgjchkhakpfinmaj";
|
const chromeExtId = "enamippconapkdmgfgjchkhakpfinmaj";
|
||||||
|
|
||||||
axios.get(mozillaAddonsUrl)
|
axios.get(mozillaAddonsUrl)
|
||||||
|
|||||||
Reference in New Issue
Block a user