Skip to content

Commit

Permalink
Beta branch update (#108)
Browse files Browse the repository at this point in the history
* DO NOT USE: Quick save for BETA. Currently switching laptops.

* Beta Update (#76)

* 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

* New cloud-like layout.

* Update to v4.2 (BETA).

Moved and restructured code to be cloud based.

Added several new options.

Added Developer options.

* Fixed major bug

* Fix "Hide WTP" icon

Fixed the icon and made code simpler, `document.queryBy` is `$` and `document.furnish` is `furnish`

* 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

* Beta branches merge (#77)

* 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

* Update ZIP and CRX

* Update ZIP and CRX

* Fixed list adding feature. Added FLocs to background.js (testing)

* Adjusted Tubi script. Works again

* Made variable/function names strict. Changed code layout.

* Updated scripts (onload listeners). Renamed more variables.

* Quick fix

* Added consistent.stream as a download source

* Added webtoplex. Also fixed minor loading error in plugn.js

* Fixed manifest to run on webtoplex and the test page

* Added the offer modules (right-hand info cards) to youtube.js

* Updated README (added site), and manifest (corrected information)

* Updated the packages (.zip, .crx)

* Stricter variable naming. Easier developer mode. Updated the packages.

* Minor aesthetic error for CouchPotato related settings

* Personal preference. Add feature later for similar functionality.

* Fixed minor ID grabbing error

* Fixed/enhanced loose matching

* Fixed minor clearing bug

* Fixed search provider feature

* fixed caching error (erases entries after filling up)

* fixed merge conflicts

* Added develoepr notifications for erased cache. Fixed a few sites

* Moved save button location (easier to access)

* Fixed bug that would close elements on YouTube

* Fixed a bug for Watcher (options). Minor changes to utils (less strict)

* Permissions API; rename cache; update: youtube and webtoplex; options

* Revamped Plex It! Fixed plugin loading. Fixed options page

* Muted (no longer runs on) domains that don't use the extension

* Added Redbox. Fixed YouTube. Fixed common.js. Fixed plugns.js.

* Added Kitsu. Updated layouts

* Added more permissions

* Stricter variable names

* Updated packages

* Updated permissions, updated sites, updated packages.

* Added "modify" feature

* Added the "theme" feature. Fixed minor bugs.

* Updated download scripts. Updated layout. Updated errors.

* Added multiple TLD option (array). Fixed scripts.

* Updated download scripts (deterred use of blobs). Updated packages.

* Fixed minor date error for Vumoo

* Fixed "Preferred Server" setting... Maybe?

* Updated options page. Updated Plugn script. Miscellaneous cloud updates.

* Updated options pagae. Fixed minor errors in scripts.

* Added Sick Beard support. Fixed minor errors/bugs.

* Corrected Allocine on options page... Now save-able

* Updated README

* Changed TMDb API token (a "more public" one)

* Added multiple oload domains...

* Fixed error: unable to save options. "Added" Allocine (correctly).

* Updated packages

* Added another domain for consistent.stream. Made Plugins more stable.

* Added app.plex.tv as a supported site. Made minor bug fixes

* Major bug fixed (thanks to mattssn11)

* Fixed major bug (plugin instance). Added Plex as a download source.

* Updated onlocationchange. Update plugn.js

* Minor bug fixes: test error, plex downloader, etc. Won't push update.

* Updated spaces... Literally. Updated README. Made FF friendly fls/lyo

* Made a Firefox testing version. DOES NOT WORK. Using it to test for fix.

* Firefox "works" again... still removing minor errors (that don't exist)
  • Loading branch information
Ephellon authored Oct 23, 2019
1 parent 3950087 commit c13c376
Show file tree
Hide file tree
Showing 296 changed files with 26,930 additions and 6,843 deletions.
117 changes: 72 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,63 @@ This browser extension searches your [Plex Media Server (PMS)](https://www.plex.

----

## Features:

- Can save media directly from noted sites (file downloads/magnet URLs)
- Right-click | Web to Plex | Save as "Show/Movie (Year)"
- Can push requests to your chosen download manager
- [Radarr](https://radarr.video/)
- [Sonarr](https://sonarr.tv/)
- [CouchPotato](https://couchpota.to/)
- [Watcher 3](https://nosmokingbandit.github.io/)
- [Ombi](https://ombi.io/)
- Offers search options via right-click (context menu)
- Right-click | Web to Plex | Find "Show/Movie (Year)"
- Offers a Plex-like GUI
- Web to Plex button
- Settings page
- Pop-up page
- Offers a status via the browser badge and button
- Orange/Yellow: item is on Plex
- Blue (button): item isn't on Plex, but can be sent for
- Grey (badge)/Red (button): item is unavailable/not found
- Grey (button): item is loading
- Offers an easy login feature
- Offers an API login feature
- Offers a "Direct Plex URL" feature
- i.e. you can specify `localhost:32400` as your Plex URL to avoid bandwidth usage for Plex requests

# Download Managers

Optionally, you can configure your download manager(s) (see support table) in the extension's options. After that, you can immediately add a TV show or movie with one click, right from your favorite site.
# NZB Managers

Optionally, you can configure NZB Manager (see support table) in the extension's options. After that, you can immediately add a TV show or movie with one click, right from your favorite site.

## Supported Managers
| Manager | Movie Support | TV Show Support | Searchable
| ----------------------------------------------- | ------------- | --------------- | ----------
| [Watcher 3](https://nosmokingbandit.github.io/) | Yes | |
| [CouchPotato](https://couchpota.to/) | Yes | Yes |
| [Radarr](https://radarr.video/) | Yes | | Yes
| [Sonarr](https://sonarr.tv/) | | Yes | Yes
| [Ombi](https://ombi.io/) | Yes | Yes | Yes
| ----------------------------------------------- |:-------------:|:---------------:|:----------:
| [Watcher 3](https://nosmokingbandit.github.io/) | ✔ | ❌ | ❌
| [CouchPotato](https://couchpota.to/) | ✔ | ✔ | ❌
| [Radarr](https://radarr.video/) | ✔ | ❌ | ✔
| [Sonarr](https://sonarr.tv/) | ❌ | ✔ | ✔
| [Ombi](https://ombi.io/) | ❔ | ❔ | ✔
| [Medusa](https://pymedusa.com/) | ❌ | ✔ | ✔
| [Sick Beard](https://sickbeard.com/) | ❌ | ✔ | ❌

### Key

||||
| - | - | - |
| yes | no | yes (with help) |

----

## Features
### Easy login
You can log into Plex using either an access token, your credentials, or Ombi (if setup).

### Download (![download icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/img/16.png))
On certain sites (denoted with the "download" icon), the user can choose to save/engage media directly, instead of waiting for their NZB manager to find the item.

### Plex It! (![plex it icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/img/plexit.16.png))
Click the icon to open **Plex It!** (left sidebar), click it again to add the current item(s) to your list.

It's primary purpose is to provide a watchlist service on sites that don't support watchlists.

If you don't feel like actually downloading the movie, or want a simple watchlist, you can also use the built-in "Plex It!" feature to bookmark the current page.
### Hide Web to Plex (![hide icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/img/hide.16.png))
Use this to hide the **Web to Plex** button. It changes the button's opacity to 10% to make it almost invisible so that it isn't as distracting on sites like Netflix.

### Reload Web to Plex (![reload icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/img/reload.16.png))
Use this to reload **Web to Plex** on the current page. This can sometimes fix loading issues or cache errors.

### Plex URL
This is a *moderately advance* setting, but is very useful to know. If you know your Plex server's URL (e.g. `https://localhost:32400`), then you can specify this and avoid bandwidth usage, as the extension will communicate with Plex on your device instead of `https://app.plex.tv/`.

### Find this | Right Click
If you aren't satisfied with a found item, or it is incorrect, you can right click the page and use the **Web to Plex | Find "XYZ"** feature to search for the item.

The sites used as search engines (IMDb, TMDb, and TVDb) will automatically create a cached version of the information (for "Local Search" results).

--------

## Supported sites

<article>
<details>
<summary> <i>Sites</i> </summary>

1. [Movieo](http://movieo.me/)
2. [IMDb](http://imdb.com/)
3. [Trakt.tv](https://trakt.tv/)
Expand All @@ -76,13 +90,22 @@ If you don't feel like actually downloading the movie, or want a simple watchlis
23. [Toloka](https://toloka.to/)<sup>6</sup>
24. [Shana Project](https://www.shanaproject.com/)<sup>6</sup>
25. [My Anime List](https://myanimelist.com/)<sup>6</sup>
26. [YouTube](https://youtube.com/)
27. [Flickmetrix (Cinesift)](https://flickmetrix.com/)
28. [Allociné](https://www.allocine.fr/)
29. [MovieMeter](https://www.moviemeter.nl/)
30. [JustWatch](https://justwatch.com/)

*Notes*
26. [My Shows](https://en.myshows.me/)<sup>6</sup>
27. [YouTube](https://youtube.com/)
28. [Flickmetrix (Cinesift)](https://flickmetrix.com/)
29. [Allociné](https://www.allocine.fr/)
30. [MovieMeter](https://www.moviemeter.nl/)
31. [JustWatch](https://justwatch.com/)
32. [Vumoo](https://vumoo.to/)<sup>1</sup>
33. [Web to Plex](https://ephellon.github.io/web.to.plex/)<sup>2/3/4/5</sup>
34. [Indomovie](https://indomovie.club)<sup>5/6</sup>
35. [Kitsu](https://kitsu.io/)<sup>6</sup>
36. [Redbox](https://redbox.com/)<sup>6</sup>

</details>

<details>
<summary> <i>Key</i> </summary>

- `1` *This site uses the `Right click | Web to Plex | Save as...` feature (file download), or a direct link (usually magnet URL).*
- `2` *This site has a loading issue, simply refresh the page if the button doesn't appear.*
Expand All @@ -91,13 +114,17 @@ If you don't feel like actually downloading the movie, or want a simple watchlis
- `5` *This site is known to update frequently, support may change without notice.*
- `6` *This site is only supported via a plugin (enabled in the settings)*

</details>

</article>

## Installing Web to Plex

**Download on [Chrome Webstore](https://chrome.google.com/webstore/detail/movieo-to-plex/kmcinnefmnkfnmnmijfmbiaflncfifcn).**

**Download on [FireFox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/web-to-plex/).**

**Download the [SRC](https://github.com/Ephellon/web-to-plex/archive/master.zip)**
**Download the source code for [Google Chrome/Opera](src.zip), or [Firefox](moz.zip).**

## Requirements

Expand All @@ -107,6 +134,6 @@ If you don't feel like actually downloading the movie, or want a simple watchlis

## Issues & Contributions

If you have any problem with the extension, please don't hesitate to [submit an issue](https://github.com/SpaceK33z/web-to-plex/issues/new).
If you have any problem with the extension, please don't hesitate to [submit an issue](https://github.com/SpaceK33z/web-to-plex/issues/new/choose).

All contributions are welcome.
Binary file added moz.xpi
Binary file not shown.
Binary file added moz.zip
Binary file not shown.
Binary file added moz/$$$16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$$$32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$$$48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$$16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$$32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$$48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/$48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions moz/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Internet Systems Consortium license
===================================

Copyright (c) 2016, Kees Kluskens

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
139 changes: 139 additions & 0 deletions moz/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
**We're currently in the process of making a v4 release which will contain the features listed below. The currently available version on the Chrome and Firefox webstore won't contain these features!**

# Web to Plex ![Icon](src/48.png)

![Examples](example.png)

This browser extension searches your [Plex Media Server (PMS)](https://www.plex.tv/downloads/) for matching media on sites like [IMDb](https://imdb.com), letting you immediately open the movie or TV show in Plex, if it is available. If the item isn't found on your PMS, then a download button is added instead.

----

# NZB Managers

Optionally, you can configure NZB Manager (see support table) in the extension's options. After that, you can immediately add a TV show or movie with one click, right from your favorite site.

## Supported Managers
| Manager | Movie Support | TV Show Support | Searchable
| ----------------------------------------------- |:-------------:|:---------------:|:----------:
| [Watcher 3](https://nosmokingbandit.github.io/) | ✔ | ❌ | ❌
| [CouchPotato](https://couchpota.to/) | ✔ | ✔ | ❌
| [Radarr](https://radarr.video/) | ✔ | ❌ | ✔
| [Sonarr](https://sonarr.tv/) | ❌ | ✔ | ✔
| [Ombi](https://ombi.io/) | ❔ | ❔ | ✔
| [Medusa](https://pymedusa.com/) | ❌ | ✔ | ✔
| [Sick Beard](https://sickbeard.com/) | ❌ | ✔ | ❌

### Key

||||
| - | - | - |
| yes | no | yes (with help) |

----

## Features
### Easy login
You can log into Plex using either an access token, your credentials, or Ombi (if setup).

### Download (![download icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/16.png))
On certain sites (denoted with the "download" icon), the user can choose to save/engage media directly, instead of waiting for their NZB manager to find the item.

### Plex It! (![plex it icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/img/plexit.16.png))
Click the icon to open **Plex It!** (left sidebar), click it again to add the current item(s) to your list.

It's primary purpose is to provide a watchlist service on sites that don't support watchlists.

### Hide Web to Plex (![hide icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/img/hide.16.png))
Use this to hide the **Web to Plex** button. It changes the button's opacity to 10% to make it almost invisible so that it isn't as distracting on sites like Netflix.

### Reload Web to Plex (![reload icon](https://github.com/SpaceK33z/web-to-plex/blob/master/src/img/reload.16.png))
Use this to reload **Web to Plex** on the current page. This can sometimes fix loading issues or cache errors.

### Plex URL
This is a *moderately advance* setting, but is very useful to know. If you know your Plex server's URL (e.g. `https://localhost:32400`), then you can specify this and avoid bandwidth usage, as the extension will communicate with Plex on your device instead of `https://app.plex.tv/`.

### Find this | Right Click
If you aren't satisfied with a found item, or it is incorrect, you can right click the page and use the **Web to Plex | Find "XYZ"** feature to search for the item.

The sites used as search engines (IMDb, TMDb, and TVDb) will automatically create a cached version of the information (for "Local Search" results).

--------

## Supported sites

<article>
<details>
<summary> <i>Sites</i> </summary>

1. [Movieo](http://movieo.me/)
2. [IMDb](http://imdb.com/)
3. [Trakt.tv](https://trakt.tv/)
4. [Letterboxd](https://letterboxd.com/)
5. [GoStream](https://gostream.site/)<sup>1</sup>
6. [TV Maze](http://www.tvmaze.com/)
7. [The TVDb](https://www.thetvdb.com/)
8. [The MovieDb](https://www.themoviedb.org/)
9. [VRV](https://vrv.co/)<sup>2</sup>
10. [Hulu](https://hulu.com/)<sup>2/3/4</sup>
11. [Google Play Store](https://play.google.com/store/movies/)
12. Google Search (search results)
13. [iTunes](https://itunes.apple.com/)<sup>3/5</sup>
14. [Metacritic](http://www.metacritic.com/)<sup>4</sup>
15. [Fandango](https://www.fandango.com/)
16. [Amazon](https://www.amazon.com/)<sup>5</sup>
17. [Vudu](https://www.vudu.com/)
18. [Verizon](https://www.tv.verizon.com/)
19. [CouchPotato](http://couchpotato.life/)
20. [Rotten Tomatoes](https://www.rottentomatoes.com/)
21. [ShowRSS](https://showrss.info/)<sup>1</sup> (button isn't meant to appear)
22. [Netflix](https://netflix.com/)<sup>3</sup>
23. [Toloka](https://toloka.to/)<sup>6</sup>
24. [Shana Project](https://www.shanaproject.com/)<sup>6</sup>
25. [My Anime List](https://myanimelist.com/)<sup>6</sup>
26. [My Shows](https://en.myshows.me/)<sup>6</sup>
27. [YouTube](https://youtube.com/)
28. [Flickmetrix (Cinesift)](https://flickmetrix.com/)
29. [Allociné](https://www.allocine.fr/)
30. [MovieMeter](https://www.moviemeter.nl/)
31. [JustWatch](https://justwatch.com/)
32. [Vumoo](https://vumoo.to/)<sup>1</sup>
33. [Web to Plex](https://ephellon.github.io/web.to.plex/)<sup>2/3/4/5</sup>
34. [Indomovie](https://indomovie.club)<sup>5/6</sup>
35. [Kitsu](https://kitsu.io/)<sup>6</sup>
36. [Redbox](https://redbox.com/)<sup>6</sup>

</details>

<details>
<summary> <i>Key</i> </summary>

- `1` *This site uses the `Right click | Web to Plex | Save as...` feature (file download), or a direct link (usually magnet URL).*
- `2` *This site has a loading issue, simply refresh the page if the button doesn't appear.*
- `3` *This site doesn't allow media browsing, or requires a subscription beforehand.*
- `4` *This site is network intensive (loads slowly). Be patient.*
- `5` *This site is known to update frequently, support may change without notice.*
- `6` *This site is only supported via a plugin (enabled in the settings)*

</details>

</article>

## Installing Web to Plex

**Download on [Chrome Webstore](https://chrome.google.com/webstore/detail/movieo-to-plex/kmcinnefmnkfnmnmijfmbiaflncfifcn).**

**Download on [FireFox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/web-to-plex/).**

**Download the [SRC](archive/master.zip).**

## Requirements

+ [**Plex Media Server v1.4.3.0**](https://www.plex.tv/downloads/#getdownload) or higher

+ Before using the [extension](chrome://extensions), you must configure the settings

## Issues & Contributions

If you have any problem with the extension, please don't hesitate to [submit an issue](https://github.com/SpaceK33z/web-to-plex/issues/new/choose).

All contributions are welcome.
Binary file added moz/_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added moz/_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions moz/__test__.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* global Update(type:string, details:object) */
(init = () => Update('SCRIPT', { script: '__test__' }))();
2 changes: 2 additions & 0 deletions moz/allocine$.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* global Update(type:string, details:object) */
(init = () => Update('SCRIPT', { script: 'allocine' }))();
29 changes: 29 additions & 0 deletions moz/allocine.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
let script = {
"url": "*://*.allocine.fr/(film|series)/*",

"init": (ready) => {
let _title, _year, _image, R = RegExp;

let title = $('.titlebar-title').first,
year = $('.date, .meta-body font').first,
image = $('.thumbnail-img').first,
type = script.getType();

if(!title || !year)
return 1000;

title = title.textContent.trim();
image = image.src;

year.textContent.replace(/(\d{4})/, '');
year = +R.$1;

return { type, title, year, image };
},

"getType": () => {
let { pathname } = top.location;

return /\/(film)\//.test(pathname)? 'film': 'show';
},
};
Binary file added moz/allocine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions moz/amazon$.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* global Update(type:string, details:object) */
(init = () => Update('SCRIPT', { script: 'amazon' }))();
Loading

0 comments on commit c13c376

Please sign in to comment.