Rm unused constants

pull/433/head
Kevin Payravi 2024-01-11 03:01:15 -06:00
parent 9992d2ccf1
commit 6b5c593f46
5 changed files with 2 additions and 7 deletions

View File

@ -1,5 +1,3 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
// Set power setting
function setPower(setting) {
chrome.storage.local.set({ 'power': setting });

View File

@ -1,4 +1,3 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
var sites = [];
// Create object prototypes for getting and setting attributes:

View File

@ -1,6 +1,7 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
// Load wiki data objects, with each destination having its own object
async function commonFunctionGetSiteDataByDestination() {
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
var sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {
@ -17,7 +18,6 @@ async function commonFunctionGetSiteDataByDestination() {
// Load wiki data objects, with each origin having its own object
async function commonFunctionGetSiteDataByOrigin() {
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

View File

@ -1,4 +1,3 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
const breezewikiRegex = /breezewiki\.com$|breeze\.hostux\.net$|bw\.projectsegfau\.lt$|antifandom\.com$|breezewiki\.pussthecat\.org$|bw\.vern\.cc$|breezewiki\.esmailelbob\.xyz$|bw\.artemislena\.eu$|bw\.hamstro\.dev$|nerd\.whatever\.social$|breeze\.nohost\.network$|breeze\.whateveritworks\.org$/;
const currentURL = new URL(document.location);

View File

@ -1,4 +1,3 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
const currentURL = new URL(document.location);
let filteredWikis = [];
let hiddenWikisRevealed = {};