+3
-3
entrypoints/forum.content/index.ts
+3
-3
entrypoints/forum.content/index.ts
+22
-2
entrypoints/home.content.ts
+22
-2
entrypoints/home.content.ts
·········
·········+const trendingItems = Array.from(document.querySelectorAll('a[href^="/store"]:has(.place-card)'));
-469
entrypoints/preferences/old.js
-469
entrypoints/preferences/old.js
···-//document.getElementById('ImprovedFrLists-limit').innerText = Utilities.Limits.ImprovedFrLists;-document.getElementById('HoardersList-pageLimit').innerText = Utilities.Limits.HoardersListPages;-Settings[Modal.getAttribute('data-setting')] = Utilities.DefaultSettings[Modal.getAttribute('data-setting')];-Settings = Utilities.MergeObjects(result.PolyPlus_Settings || Utilities.DefaultSettings, Utilities.DefaultSettings);-if (!isNaN(element.getAttribute('data-parent')) && element.getAttribute('data-parent') !== null) {-UpdateElementState(document.querySelector(`.setting-container:has([data-setting="${name}"])${parent !== null ? `:has([data-parent="${parent}"])` : ''}`), value);-if (!isNaN(element.getAttribute('data-parent')) && element.getAttribute('data-parent') !== null) {-Status = Array.from(element.children).indexOf(element.querySelector('option[value="' + Status + '"]'))-if (confirm("Are you sure you'd like to replace this theme with the theme specified in the JSON?") === true) {-Settings.ThemeCreator = Utilities.MergeObjects(JSONTable, Utilities.DefaultSettings.ThemeCreator);-const Page = new DOMParser().parseFromString((await (await fetch('https://polytoria.com/create/ad/' + AddButton.previousElementSibling.value)).text()), 'text/html')-FooterText.children[0].innerHTML = `Version: v${Manifest.version} | Build Type: ${BuildType}`;-if (data.version === Manifest.version || Math.floor((data.version - Manifest.version) * 10) === 0) {-CheckForUpdatesButton.innerHTML = '<b>' + NumberOfUpdatesAvailable + ' update(s) available</b>';-const DateText = new Date(data.Date).toLocaleDateString('en-US', {day: 'numeric', month: 'long', year: 'numeric'});-chrome.storage.local.get(['PolyPlus_OutOfDate', 'PolyPlus_LiveVersion', 'PolyPlus_ReleaseNotes', 'PolyPlus_SkipUpdate'], function (result) {-Banner.style = 'top: 30px; box-shadow: 0 0 20px 2px #000; z-index: 2000; background: rgb(163 39 39);';-Your Poly+ installation is out of date! If you would like to get the latest and greatest features, improvements, and bug fixes click on one of the links below to dismiss this banner!-<a href="${result.PolyPlus_ReleaseNotes}" class="btn btn-primary btn-sm w-25" target="_blank">Go to Release Notes</a>-<button id="skip-this-update" class="btn btn-warning btn-sm w-25">(Not Recommended) Skip this Update</button>-document.getElementById('page').insertBefore(Banner, document.getElementById('page').children[1]);
···
+8
-2
entrypoints/sitewide.content.ts
+8
-2
entrypoints/sitewide.content.ts
······-if (currency) document.getElementsByClassName('brickBalanceCount')[0].textContent += ` (${currency})`
······+if (currency) document.getElementsByClassName('brickBalanceCount')[0].textContent += ` (${currency})`;
+34
entrypoints/store.content/discovery.ts
+34
entrypoints/store.content/discovery.ts
···
···
+19
entrypoints/store.content/index.ts
+19
entrypoints/store.content/index.ts
···
···
+15
entrypoints/store.content/view.ts
+15
entrypoints/store.content/view.ts
···
···
+3
-10
utils/storage.ts
+3
-10
utils/storage.ts
······export const preferences: PreferencesStorageItem = storage.defineItem('sync:preferences', { fallback: defaultPreferences, version: 1 }) as PreferencesStorageItem;export const _favoritedPlaces = storage.defineItem('sync:favoritedPlaces', { fallback: ["9656"], version: 1 });export const _bestFriends = storage.defineItem('sync:bestFriends', { fallback: ["2782"], version: 1 });
······export const preferences: PreferencesStorageItem = storage.defineItem('sync:preferences', { fallback: defaultPreferences, version: 1 }) as PreferencesStorageItem;export const _favoritedPlaces = storage.defineItem('sync:favoritedPlaces', { fallback: ["9656"], version: 1 });export const _bestFriends = storage.defineItem('sync:bestFriends', { fallback: ["2782"], version: 1 });
+2
utils/utilities.ts
+2
utils/utilities.ts
···