forked from SpaceK33z/web-to-plex
-
-
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.
* Made fixes according to DeepScan. Unable to sign XPI * - Adding custom buttons back - Fixed addition errors - Added square button * - Adjusted options page - Fixed minor saving errors - Found bugs on iTunes * - Adjusted popup styling - Made `ITEM_TYPE` strict in background.js * - Updated popup styling - Added `theatre` as a keyword for films * - Updated options page - Merged changes into other extensions
- Loading branch information
Showing
222 changed files
with
23,900 additions
and
3,712 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,39 @@ | ||
// optional | ||
// "Friendly Name" requires: api|username|password|token | ||
// api - the user's API keys (external, such as TMDb/OMDb) | ||
// username - the user's usernames (internal, such as Radarr/Sonarr/etc.) | ||
// password - the user's passwords (internal) | ||
// token - the user's tokens (internal) | ||
// Example: "Web to Plex" requires: api, token | ||
|
||
let script = { | ||
// required | ||
"url": "< URL RegExp >", | ||
// Example: *://*.amazon.*/*/video/(detail|buy)/* | ||
// *:// - match any protocol (http, https, etc.) | ||
// *.amazon - match any sub-domain (www, ww5, etc.) | ||
// .* - match any TLD (com, net, org, etc.) | ||
// /* - match any path | ||
// (detail|buy) - match one of the items | ||
|
||
// optional | ||
"ready": () => { /* return a boolean to describe if the page is ready */ }, | ||
|
||
// 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 = $('#image').first, | ||
type = script.getType(); // described below | ||
|
||
return { type, title, year, image }; | ||
}, | ||
|
||
// optional | functionality only | ||
"getType": () => 'movie' || 'show', | ||
}; |
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": "*://webtoplex.github.io/web/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 !!$('#title').first.textContent.length; | ||
}, | ||
|
||
// 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 | functionality only | ||
"getType": () => $('#example').first.getAttribute('type'), | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,32 @@ | ||
.web-to-plex-minion { | ||
margin-right: 8px; | ||
color: #fff!important; | ||
margin-bottom: 8px!important; | ||
line-height: 2!important; | ||
text-decoration: none!important; | ||
width: auto!important; | ||
} | ||
|
||
.web-to-plex-minion.wtp--download { | ||
background: linear-gradient(180deg, #f67e56, #f45a26)!important; | ||
} | ||
|
||
.web-to-plex-minion.wtp--download:hover { | ||
background: linear-gradient(180deg, #ff8960, #fd6430)!important; | ||
} | ||
|
||
.web-to-plex-minion.wtp--found { | ||
background: linear-gradient(180deg, #f7dfa5, #ca7c1f)!important; | ||
} | ||
|
||
.web-to-plex-minion.wtp--found:hover { | ||
background: linear-gradient(180deg, #f7dfa5, #f8c022)!important; | ||
} | ||
|
||
#tt--0-0 { | ||
background: linear-gradient(180deg, #70767d 0, #696f78 0, #3d444e 100%)!important; | ||
} | ||
|
||
#tt--0-0:hover { | ||
background: linear-gradient(180deg, #70767d 0, #696f78 0, #3d444e 100%)!important; | ||
} |
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
Oops, something went wrong.