-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start work on v5.0 Simple rename and push to `beta-branch` * Fixed minor bug that would cause searches to fail for cached media. * Fixed the plugin script * Quick save while switching laptops. New cloud-like layout. * Quick back-up, DO NOT USE. * Update to v4.2 (BETA). Moved and restructured code to be cloud based. Added several new options. Added Developer options. * Fix "hide web to plex" icon. Make code easier to use * Updated document.furnish, and class Prompt * Crap ton of fixes and changes... * Added Vumoo support. Dropped GoStream. * The user can now disable default sites. Added the `configuration` var * Removed restart requirement for disabling default sites * Reenabled GoStream (updated script). Added `Notify` to helpers.js * Added GoStream as a search provider (again) * Added Medusa as a manager, added the testing suite (to be removed), etc. * Update README.md * Update README.md * Match README layout of Wiki * Update test page. Minor aesthetic error in background.js
- Loading branch information
Showing
43 changed files
with
3,420 additions
and
1,917 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
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,37 @@ | ||
let script = { | ||
// required | ||
"url": "*://ephellon.github.io/web.to.plex/test/*", | ||
// Example: *://*.amazon.com/*/video/(detail|buy)/* | ||
// *:// - match any protocol (http, https, etc.) | ||
// *.amazon.com - match any sub-domain (www, ww5, etc.) | ||
// /* - match any path | ||
// (detail|buy) - match one of the items | ||
|
||
// optional | ||
"ready": () => { | ||
/* return a boolean to describe if the page is ready */ | ||
return true; | ||
}, | ||
|
||
// optional | ||
"timeout": 1000, // if the script fails to complete, retry after ... milliseconds | ||
|
||
// required | ||
"init": (ready) => { | ||
let _title, _year, _image, R = RegExp; | ||
|
||
let title = $('#title').first, | ||
year = $('#year').first, | ||
image = $('#poster').first, | ||
type = script.getType(); // described below | ||
|
||
title = title.textContent; | ||
year = +year.textContent; | ||
image = image.src || ''; | ||
|
||
return { type, title, year, image }; | ||
}, | ||
|
||
// optional | functioanlity only | ||
"getType": () => $('#example').first.getAttribute('type'), | ||
}; |
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,27 @@ | ||
let script = { | ||
"url": "*://play.google.com/store/(movies|tv)/details/*", | ||
|
||
"init": (ready) => { | ||
let _title, _year, _image, R = RegExp; | ||
|
||
let type = script.getType(), | ||
title = $('h1').first, | ||
year = $(`h1 ~ div span:${ type == 'movie'? 'first': 'last' }-of-type`).first, | ||
image = $('img[alt="cover art" i]').first; | ||
|
||
title = title.textContent.replace(/\s*\(\s*(\d{4})\s*\).*?$/, '').trim(); | ||
year = (year.textContent || R.$1).replace(/^.*?(\d{4})/, '$1').trim(); | ||
image = (image || {}).src; | ||
|
||
return { type, title, year, image }; | ||
}, | ||
|
||
"getType": () => ( | ||
location.pathname.startsWith('/store/movies')? | ||
'movie': | ||
'show' | ||
), | ||
}; | ||
|
||
addEventListener('popstate', script.init); | ||
addEventListener('pushstate-changed', script.init); |
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
Oops, something went wrong.