Skip to content

Commit

Permalink
Fixed options page issue. See #121. Removed un-needed files from moz/
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephellon committed Dec 12, 2019
1 parent 68e0cf3 commit 1a2e559
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 4,193 deletions.
Binary file modified moz.xpi
Binary file not shown.
Binary file modified moz.zip
Binary file not shown.
139 changes: 0 additions & 139 deletions moz/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion moz/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
width: 180px !important;

transition: all 0.3s ease !important;
transition: opacity 1s ese !important;
transition: opacity 1s ease !important;
}

.web-to-plex-button.hide {
Expand Down
18 changes: 4 additions & 14 deletions moz/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
{
// "update_url": "https://ephellon.github.com/web.to.plex/update.json",

"name": "Web to Plex",
"description": "Adds a button on various movie & TV show sites to open the item in Plex, or send to your designated NZB manager for download.",
"homepage_url": "https://github.com/SpaceK33z/web-to-plex/",

"manifest_version": 2,
"version": "4.1.1.1",
// Firefox Support =>
"applications": {
"version": "4.1.1.4",
"browser_specific_settings": {
"gecko": {
"id": "minkcbos@gmail.com",
//"{05243336-ce19-46df-95af-680070c96134}",
"strict_min_version": "57.0",
"update_url": "https://ephellon.github.com/web.to.plex/update.json"
"id": "mink.cbos@gmail.com",
"strict_min_version": "57.0"
}
},

Expand All @@ -29,7 +24,6 @@
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",

"content_scripts": [
// Allows media downloads
{
"matches": [
"*://*.openload.co/*", "*://*.oload.co/*",
Expand Down Expand Up @@ -75,13 +69,11 @@
"all_frames": true
},

// Testing purposes only
{
"matches": ["*://ephellon.github.io/web.to.plex/test/*"],
"js": ["utils.js", "__test__.js"]
},

// The sites
{
"matches": ["*://*.movieo.me/*"],
"js": ["history-hack.js", "utils.js", "movieo$.js"]
Expand Down Expand Up @@ -184,8 +176,6 @@
"persistent": true
},

// Disable/Comment "options_page" to enable FF support
//"options_page": "options.html",
"options_ui": {
"page": "options.html",
"open_in_tab": true
Expand Down
2 changes: 1 addition & 1 deletion moz/movieo.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ let script = {

title = title.textContent.trim().replace(/\s*\((\d{4})\)/, '');
year = +RegExp.$1;
image = image.getAttribute('data-src');
image = image.dataset.src;

return { type, title, year, image };
},
Expand Down
39 changes: 24 additions & 15 deletions moz/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h3 style="width: 35%; text-align: center;"><em>&mdash; OR &mdash;</em></h3>
<br>
<h3><em>Fill in Manager Settings with Ombi?</em></h3>
<div class="checkbox" prompt="y/n">
<input id="use-ombi" type="checkbox" data-option="UseOmbi" checked="true"/>
<input id="use-ombi" type="checkbox" data-option="UseOmbi" checked/>
<label for="use-ombi"></label>
</div>
<div>
Expand Down Expand Up @@ -109,7 +109,7 @@ <h2>Plex Server Options</h2>

<article>
<details id="ombi">
<summary>Ombi (Movies/TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-ombi" type="checkbox" data-option="usingOmbi" checked="false"/><label for="using-ombi"></label></span></summary>
<summary>Ombi (Movies/TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-ombi" type="checkbox" data-option="usingOmbi"/><label for="using-ombi"></label></span></summary>

<h2>Connection Settings</h2>
<section>
Expand Down Expand Up @@ -157,7 +157,7 @@ <h3>Login <em>(saved)</em></h3>
<hr>

<details id="watcher">
<summary>Watcher (Movies) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-watcher" type="checkbox" data-option="usingWatcher" checked="false"/><label for="using-watcher"></label></span></summary>
<summary>Watcher (Movies) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-watcher" type="checkbox" data-option="usingWatcher"/><label for="using-watcher"></label></span></summary>

<h2>Connection Settings</h2>
<section>
Expand Down Expand Up @@ -217,7 +217,7 @@ <h3>Login <em>(saved)</em></h3>
</details>

<details id="radarr">
<summary>Radarr (Movies) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-radarr" type="checkbox" data-option="usingRadarr" checked="false"/><label for="using-radarr"></label></span></summary>
<summary>Radarr (Movies) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-radarr" type="checkbox" data-option="usingRadarr"/><label for="using-radarr"></label></span></summary>

<h2>Connection Settings</h2>
<section>
Expand Down Expand Up @@ -279,7 +279,7 @@ <h3>Login <em>(saved)</em></h3>
</details>

<details id="couchpotato">
<summary>CouchPotato (Movies) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="use-couchpotato" type="checkbox" data-option="usingCouchPotato" checked="false"/><label for="use-couchpotato"></label></span></summary>
<summary>CouchPotato (Movies) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="use-couchpotato" type="checkbox" data-option="usingCouchPotato"/><label for="use-couchpotato"></label></span></summary>

<h2>Connection Settings</h2>
<section>
Expand Down Expand Up @@ -339,7 +339,7 @@ <h3>Login <em>(saved)</em></h3>
<hr>

<details id="medusa">
<summary>Medusa (TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-medusa" type="checkbox" data-option="usingMedusa" checked="false"/><label for="using-medusa"></label></span></summary>
<summary>Medusa (TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-medusa" type="checkbox" data-option="usingMedusa"/><label for="using-medusa"></label></span></summary>

<h2>Connection Settings</h2>
<section>
Expand Down Expand Up @@ -406,7 +406,7 @@ <h3>Login <em>(saved)</em></h3>
</details>

<details id="sonarr">
<summary>Sonarr (TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-sonarr" type="checkbox" data-option="usingSonarr" checked="false"/><label for="using-sonarr"></label></span></summary>
<summary>Sonarr (TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-sonarr" type="checkbox" data-option="usingSonarr"/><label for="using-sonarr"></label></span></summary>

<h2>Connection Settings</h2>
<section>
Expand Down Expand Up @@ -468,7 +468,7 @@ <h3>Login <em>(saved)</em></h3>
</details>

<details id="sickBeard">
<summary>Sick Beard (TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-sickBeard" type="checkbox" data-option="usingSickBeard" checked="false"/><label for="using-sickBeard"></label></span></summary>
<summary>Sick Beard (TV Shows) <span class="checkbox" disabled prompt-yes="use" prompt-no="skip"><input id="using-sickBeard" type="checkbox" data-option="usingSickBeard"/><label for="using-sickBeard"></label></span></summary>

<h2>Connection Settings</h2>
<section>
Expand Down Expand Up @@ -548,7 +548,16 @@ <h3>Login <em>(saved)</em></h3>

<h2>The Button</h2>
<section>
Where should the button be?
What shape should the button be?
<br>
<span class="checkbox" prompt-size="large" prompt-yes="&#9723;" prompt-no="&#9675;">
<!-- When true (checked), will be accessed in CSS (/sites/theme.css) as ".button-shape-box { ... }" -->
<input data-option="theme:button-shape" theme="true:box" type="checkbox"/>
<label for="theme:button-shape"></label>
</span>
</section>
<section>
Where should the button be (&#9675; only)?
<br>
<span class="checkbox" prompt-size="large" prompt-yes="&#8672;" prompt-no="&#8674;">
<!-- When true (checked), will be accessed in CSS (/sites/theme.css) as ".button-location-right { ... }" -->
Expand Down Expand Up @@ -642,7 +651,7 @@ <h3>Native Proxy Settings</h3>
<h3>
Auto Grab
<span class="checkbox" prompt-yes="all" prompt-no="ask">
<input id="use-autograb" type="checkbox" data-option="UseAutoGrab" checked="false"/>
<input id="use-autograb" type="checkbox" data-option="UseAutoGrab"/>
<label for="use-autograb"></label>
</span>
</h3>
Expand All @@ -665,7 +674,7 @@ <h3>Maximum Auto Grabs</h3>
<h3>
Prompt for Save Location
<span class="checkbox" prompt="y/n">
<input id="prompt-location" type="checkbox" data-option="PromptLocation" checked="false"/>
<input id="prompt-location" type="checkbox" data-option="PromptLocation"/>
<label for="prompt-location"></label>
</span>
</h3>
Expand All @@ -680,7 +689,7 @@ <h3>
<h3>
Prompt for Quality
<span class="checkbox" prompt="y/n">
<input id="prompt-quality" type="checkbox" data-option="PromptQuality" checked="false"/>
<input id="prompt-quality" type="checkbox" data-option="PromptQuality"/>
<label for="prompt-quality"></label>
</span>
</h3>
Expand All @@ -699,7 +708,7 @@ <h3>
<h3>
Ignore Found Items
<span class="checkbox" prompt="y/n">
<input id="notify-new-only" type="checkbox" data-option="NotifyNewOnly" checked="false"/>
<input id="notify-new-only" type="checkbox" data-option="NotifyNewOnly"/>
<label for="notify-new-only"></label>
</span>
</h3>
Expand All @@ -710,7 +719,7 @@ <h3>
<h3>
Ignore Repetitive Notifications
<span class="checkbox" prompt="y/n">
<input id="notify-only-once" type="checkbox" data-option="NotifyOnlyOnce" checked="false"/>
<input id="notify-only-once" type="checkbox" data-option="NotifyOnlyOnce"/>
<label for="notify-only-once"></label>
</span>
</h3>
Expand All @@ -727,7 +736,7 @@ <h3>
<h3>
Loose Searching
<span class="checkbox">
<input id="use-loose" type="checkbox" data-option="UseLoose" checked="true"/>
<input id="use-loose" type="checkbox" data-option="UseLoose" checked/>
<label for="use-loose"></label>
</span>
</h3>
Expand Down
Loading

0 comments on commit 1a2e559

Please sign in to comment.