mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 19:47:04 +03:00
17 lines
411 B
TypeScript
17 lines
411 B
TypeScript
import Config from "./config";
|
|
import { showDonationLink } from "./utils/configUtils";
|
|
|
|
import Utils from "./utils";
|
|
const utils = new Utils();
|
|
|
|
window.addEventListener('DOMContentLoaded', init);
|
|
|
|
async function init() {
|
|
utils.localizeHtmlPage();
|
|
|
|
await utils.wait(() => Config.config !== null);
|
|
|
|
if (!showDonationLink()) {
|
|
document.getElementById("sbDonate").style.display = "none";
|
|
}
|
|
} |