-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stremio): add example js patcher script
- Loading branch information
Showing
6 changed files
with
22 additions
and
1 deletion.
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
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
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
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,17 @@ | ||
/** | ||
* | ||
* @name Stremio JavaScript Patcher | ||
* @author n0bodysec | ||
* @description A simple JS that is executed on document load. You can apply custom client patches with it. | ||
* @example https://gist.github.com/n0bodysec/2896438d8578f13c4a9e30373f7200c1 | ||
* This script can be loaded using nginx sub_filter | ||
* sub_filter '</body>' '<script src="https://your.stremio.url/patches.js"></script></body>'; | ||
* sub_filter_once on; | ||
* | ||
*/ | ||
|
||
window.addEventListener('DOMContentLoaded', async (event) => | ||
{ | ||
const isLegacy = localStorage.streamingServerUrl !== undefined; | ||
console.log(`[STREMIO PATCHER] Detected ${isLegacy ? 'Legacy' : 'Web'} UI`); | ||
}); |
File renamed without changes.
File renamed without changes.