-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5912245
commit 93d1e70
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// TODO: this will be the extension in which we run the init code | ||
|
||
// @ts-check | ||
|
||
// NAME: Spicetify Marketplace Extension | ||
// AUTHOR: theRealPadster, CharlieS1103 | ||
// DESCRIPTION: Companion extension for Spicetify Marketplace | ||
|
||
/// <reference path="../spicetify-cli/globals.d.ts" /> | ||
|
||
(function MarketplaceExtension() { | ||
// TODO: this is pulled from HidePodcasts, we'll need to adjust | ||
const { Player, Menu, LocalStorage, Platform } = Spicetify; | ||
const main = document.querySelector(".main-view-container__scroll-node-child"); | ||
if (!(Player && Menu && LocalStorage && Platform && main)) { | ||
// console.log('Not ready, waiting...'); | ||
setTimeout(MarketplaceExtension, 1000); | ||
return; | ||
} | ||
|
||
console.log("Loaded Marketplace extension"); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,8 @@ | |
"TabBar.js", | ||
"Settings.js", | ||
"ReloadModal.js" | ||
], | ||
"subfiles_extension": [ | ||
"Extension.js" | ||
] | ||
} |