-
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.
Remove testing directories. Updated options page styling. (#140)
- Loading branch information
Showing
27 changed files
with
836 additions
and
538 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
/** GitHub@alexey-bass | ||
* Simply compares two string version values. | ||
* | ||
* Example: | ||
* compareVer('1.1', '1.2') => -1 | ||
* compareVer('1.1', '1.1') => 0 | ||
* compareVer('1.2', '1.1') => 1 | ||
* compareVer('2.23.3', '2.22.3') => 1 | ||
* | ||
* Returns: | ||
* -1 = left is LOWER = right is GREATER | ||
* 0 = they are equal | ||
* 1 = left is GREATER = right is LOWER | ||
* And FALSE if one of input versions are not valid | ||
* | ||
* @function | ||
* @param {String} left Version #1 | ||
* @param {String} right Version #2 | ||
* @return {Integer|Boolean} | ||
* @author Alexey Bass (albass) | ||
* @since 2011-07-14 | ||
*/ | ||
function compareVer(left, right) { | ||
if(typeof left + typeof right != 'stringstring') | ||
return false; | ||
|
||
for(let a = left.split('.'), b = right.split('.'), i = 0, l = Math.max(a.length, b.length); i < l; i++) { | ||
if((a[i] && !b[i] && parseInt(a[i]) > 0) || (parseInt(a[i]) > parseInt(b[i]))) | ||
return +1 | ||
/* left is higher */; | ||
else if((b[i] && !a[i] && parseInt(b[i]) > 0) || (parseInt(a[i]) < parseInt(b[i]))) | ||
return -1 | ||
/* right is higher */; | ||
} | ||
|
||
return 0 | ||
/* equal */; | ||
} |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"homepage_url": "https://github.com/SpaceK33z/web-to-plex/", | ||
|
||
"manifest_version": 2, | ||
"version": "4.1.1.6", | ||
"version": "4.1.1.7", | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "[email protected]", | ||
|
@@ -70,12 +70,6 @@ | |
"all_frames": true | ||
}, | ||
|
||
// Testing purposes only | ||
{ | ||
"matches": ["*://ephellon.github.io/web.to.plex/test/*"], | ||
"js": ["utils.js", "__test__.js"] | ||
}, | ||
|
||
// The sites | ||
{ | ||
"matches": ["*://*.movieo.me/*"], | ||
|
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
Oops, something went wrong.