├── .github ├── FUNDING.yml └── workflows │ └── publish-and-release.yml ├── .gitignore ├── LICENSE ├── README.md ├── background.js ├── css ├── all.min.css ├── bootstrap.min.css ├── options.css ├── overseerr.min.css └── style.css ├── images ├── icon.png ├── screenshot-1.png ├── screenshot-2.png ├── screenshot-3.png ├── screenshot-4.png └── screenshot-5.png ├── js ├── content-scripts │ ├── allocine.js │ ├── imdb.js │ ├── justwatch.js │ ├── letterboxd.js │ ├── plex.js │ ├── rottentomatoes.js │ ├── senscritique.js │ ├── taste.js │ ├── tmdb.js │ ├── trakt.js │ └── tvdb.js ├── lib │ ├── bootstrap.min.js │ ├── jquery-3.5.1.min.js │ └── popper.min.js ├── overseerr-api.js ├── overseerr-container.js └── storage.js ├── manifest.json ├── options.html ├── options.js ├── popup.html ├── popup.js └── webfonts ├── fa-brands-400.eot ├── fa-brands-400.svg ├── fa-brands-400.ttf ├── fa-brands-400.woff ├── fa-brands-400.woff2 ├── fa-regular-400.eot ├── fa-regular-400.svg ├── fa-regular-400.ttf ├── fa-regular-400.woff ├── fa-regular-400.woff2 ├── fa-solid-900.eot ├── fa-solid-900.svg ├── fa-solid-900.ttf ├── fa-solid-900.woff └── fa-solid-900.woff2 /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [RemiRigal] 2 | -------------------------------------------------------------------------------- /.github/workflows/publish-and-release.yml: -------------------------------------------------------------------------------- 1 | name: publish-and-release 2 | 3 | on: 4 | push: 5 | tags: 6 | - 'v*.*.*' 7 | 8 | jobs: 9 | publish: 10 | name: Publish extension 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v3 15 | 16 | - name: Get release version 17 | run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV 18 | 19 | - name: Create archive 20 | run: zip -r Overseerr-Assistant_${{ env.RELEASE_VERSION }}.zip . -x '*.git/*' '*images/screenshot-*.png' 21 | 22 | - name: Upload & publish 23 | uses: mnao305/chrome-extension-upload@v4.0.1 24 | with: 25 | extension-id: hopnjiadheaagfhpipecoamoegijhnij 26 | client-id: ${{ secrets.CLIENT_ID }} 27 | client-secret: ${{ secrets.CLIENT_SECRET }} 28 | refresh-token: ${{ secrets.REFRESH_TOKEN }} 29 | file-path: Overseerr-Assistant_${{ env.RELEASE_VERSION }}.zip 30 | publish: true 31 | 32 | - name: Create GitHub release 33 | uses: marvinpinto/action-automatic-releases@latest 34 | with: 35 | title: Overseerr Assistant ${{ env.RELEASE_VERSION }} 36 | repo_token: ${{ secrets.GITHUB_TOKEN }} 37 | prerelease: false 38 | files: | 39 | Overseerr-Assistant_${{ env.RELEASE_VERSION }}.zip 40 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | 3 | *.zip 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2021 Rémi Rigal 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Overseerr Assistant 2 | 3 | [![Chrome Web Store Version](https://img.shields.io/chrome-web-store/v/hopnjiadheaagfhpipecoamoegijhnij.svg?style=flat-square)](https://chrome.google.com/webstore/detail/hopnjiadheaagfhpipecoamoegijhnij) 4 | [![Chrome Web Store Downloads](https://img.shields.io/chrome-web-store/d/hopnjiadheaagfhpipecoamoegijhnij.svg?style=flat-square)](https://chrome.google.com/webstore/detail/hopnjiadheaagfhpipecoamoegijhnij/reviews) 5 | [![Chrome Web Store Rating](https://img.shields.io/chrome-web-store/stars/hopnjiadheaagfhpipecoamoegijhnij.svg?style=flat-square)](https://chrome.google.com/webstore/detail/hopnjiadheaagfhpipecoamoegijhnij/reviews) 6 | 7 | [![Firefox Web Store Version](https://img.shields.io/amo/v/RemiRigal@Overseerr-Assistant.svg?style=flat-square&label=firefox%20add-on)](https://addons.mozilla.org/firefox/addon/overseerr-assistant/) 8 | [![Firefox Web Store Downloads](https://img.shields.io/amo/users/RemiRigal@Overseerr-Assistant.svg?style=flat-square)](https://addons.mozilla.org/firefox/addon/overseerr-assistant/) 9 | [![Firefox Web Store Rating](https://img.shields.io/amo/stars/RemiRigal@Overseerr-Assistant.svg?style=flat-square&label=ratings)](https://addons.mozilla.org/firefox/addon/overseerr-assistant/) 10 | 11 | Overseerr Assistant is a browser extension for [Overseerr](https://github.com/sct/overseerr) and [Jellyseerr](https://github.com/Fallenbagel/jellyseerr). It provides an integration for most popular media websites. 12 | 13 | Features: 14 | - One-click Overseerr requests directly from media websites 15 | - One-click access to available media on Plex 16 | - Monitor requests status 17 | - Support for both movies and TV shows 18 | 19 | Supported media websites: 20 | - [TMDB](https://www.themoviedb.org/) 21 | - [IMDb](https://www.imdb.com/) 22 | - [TVDB](https://thetvdb.com/) 23 | - [Rotten Tomatoes](https://www.rottentomatoes.com/) 24 | - [Plex Discover](https://app.plex.tv/desktop/#!/media/tv.plex.provider.discover?source=home) 25 | - [Letterboxd](https://letterboxd.com/) 26 | - [JustWatch](https://www.justwatch.com/) 27 | - [Trakt.tv](https://trakt.tv/) 28 | - [Taste.io](https://www.taste.io/) 29 | - [Allociné](https://www.allocine.fr/) 30 | - [Senscritique](https://www.senscritique.com/) 31 | 32 | ## Install 33 | 34 | **[Available on the Chrome Web Store](https://chrome.google.com/webstore/detail/hopnjiadheaagfhpipecoamoegijhnij)** 35 | **[Available on Firefox Add-ons](https://addons.mozilla.org/firefox/addon/overseerr-assistant/)** 36 | 37 | ## Screenshots 38 | 39 | ### TMDB 40 | ![Screenshot-1](images/screenshot-1.png) 41 | ![Screenshot-2](images/screenshot-2.png) 42 | ![Screenshot-3](images/screenshot-3.png) 43 | 44 | ### IMDb 45 | ![Screenshot-4](images/screenshot-4.png) 46 | ![Screenshot-5](images/screenshot-5.png) 47 | 48 | ## License 49 | 50 | Overseerr Extension is licensed under the [MIT License](LICENSE). 51 | -------------------------------------------------------------------------------- /background.js: -------------------------------------------------------------------------------- 1 | importScripts('js/storage.js'); 2 | 3 | 4 | function encodeURIComponentSafe(value) { 5 | return encodeURIComponent(value) 6 | .replace(/!/g, '%21') 7 | .replace(/\~/g, '%7E') 8 | .replace(/\*/g, '%2A') 9 | .replace(/\(/g, '%28') 10 | .replace(/\)/g, '%29'); 11 | } 12 | 13 | chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { 14 | if (request.contentScriptQuery === 'queryMedia') { 15 | console.log(`Querying ${request.mediaType} '${request.tmdbId}'`); 16 | pullStoredData(function() { 17 | const options = {headers: {'X-Api-Key': serverAPIKey}}; 18 | fetch(`${origin}/api/v1/${request.mediaType}/${encodeURIComponent(request.tmdbId)}`, options) 19 | .then(response => response.json()) 20 | .then(json => sendResponse(json)) 21 | .catch(error => console.error(error)) 22 | }); 23 | return true; 24 | } 25 | 26 | else if (request.contentScriptQuery === 'requestMedia') { 27 | console.log(`Requesting media '${request.tmdbId}' of type '${request.mediaType}'`); 28 | pullStoredData(function() { 29 | const options = { 30 | method: 'POST', 31 | headers: {'Content-Type': 'application/json', 'X-Api-Key': serverAPIKey}, 32 | body: JSON.stringify({mediaType: request.mediaType, mediaId: request.tmdbId, seasons: request.seasons}) 33 | }; 34 | fetch(`${origin}/api/v1/request`, options) 35 | .then(response => response.json()) 36 | .then(json => sendResponse(json)) 37 | .catch(error => console.error(error)); 38 | }); 39 | return true; 40 | } 41 | 42 | else if (request.contentScriptQuery === 'search') { 43 | console.log(`Searching movie '${request.title}'`); 44 | pullStoredData(function() { 45 | const options = {headers: {'X-Api-Key': serverAPIKey}}; 46 | fetch(`${origin}/api/v1/search?query=${encodeURIComponentSafe(request.title)}`, options) 47 | .then(response => response.json()) 48 | .then(json => sendResponse(json)) 49 | .catch(error => console.error(error)); 50 | }); 51 | return true; 52 | } 53 | 54 | else if (request.contentScriptQuery === 'plexQueryMedia') { 55 | let mediaKey = encodeURIComponentSafe(request.mediaKey); 56 | let plexToken = encodeURIComponentSafe(request.plexToken); 57 | console.log(`Requesting Plex media '${mediaKey}'`); 58 | const options = {headers: {'Accept': 'application/json'}}; 59 | fetch(`https://metadata.provider.plex.tv/library/metadata/${mediaKey}?X-Plex-Token=${plexToken}`, options) 60 | .then(response => response.json()) 61 | .then(json => sendResponse(json)) 62 | .catch(error => console.error(error)); 63 | return true; 64 | } 65 | 66 | else if (request.contentScriptQuery === 'getOverseerrVersion') { 67 | console.log(`Getting Overseerr version`); 68 | pullStoredData(function() { 69 | const options = {headers: {'X-Api-Key': serverAPIKey}}; 70 | fetch(`${origin}/api/v1/status`, options) 71 | .then(response => response.json()) 72 | .then(json => sendResponse(json)) 73 | .catch(error => console.error(error)); 74 | }); 75 | return true; 76 | } 77 | 78 | else if (request.contentScriptQuery === 'checkJellyseerr') { 79 | console.log(`Checking if instance is Jellyseerr`); 80 | pullStoredData(function() { 81 | const options = {headers: {'X-Api-Key': serverAPIKey, 'Accept': 'application/json'}}; 82 | fetch(`${origin}/api/v1/auth/me`, options) 83 | .then(response => response.json()) 84 | .then(json => sendResponse(Object.keys(json).filter((key) => /jellyfin/.test(key)).length > 0)) 85 | .catch(error => console.error(error)); 86 | }); 87 | return true; 88 | } 89 | 90 | else if (request.contentScriptQuery === 'openOptionsPage') { 91 | chrome.runtime.openOptionsPage(); 92 | return true; 93 | } 94 | 95 | else if (request.contentScriptQuery === 'listenForUrlChange') { 96 | chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { 97 | if ( 98 | changeInfo.status === 'complete' && 99 | tab.status === 'complete' && 100 | tab.url && 101 | tab.url.startsWith('https://www.senscritique.com') 102 | ) { 103 | chrome.tabs.sendMessage(tab.id, { 104 | newUrl: tab.url 105 | }); 106 | } 107 | }); 108 | } 109 | return false; 110 | }); 111 | -------------------------------------------------------------------------------- /css/all.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | .fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-bacteria:before{content:"\e059"}.fa-bacterium:before{content:"\e05a"}.fa-bahai:before{content:"\f666"}.fa-balance-scale:before{content:"\f24e"}.fa-balance-scale-left:before{content:"\f515"}.fa-balance-scale-right:before{content:"\f516"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-biking:before{content:"\f84a"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-border-all:before{content:"\f84c"}.fa-border-none:before{content:"\f850"}.fa-border-style:before{content:"\f853"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-box-tissue:before{content:"\e05b"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buy-n-large:before{content:"\f8a6"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caravan:before{content:"\f8ff"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudflare:before{content:"\e07d"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-alt:before{content:"\f422"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-cotton-bureau:before{content:"\f89e"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dailymotion:before{content:"\e052"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-deezer:before{content:"\e077"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-disease:before{content:"\f7fa"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edge-legacy:before{content:"\e078"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-alt:before{content:"\f424"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fan:before{content:"\f863"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-faucet:before{content:"\e005"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-firefox-browser:before{content:"\e007"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-alt:before{content:"\f841"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-pay:before{content:"\e079"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guilded:before{content:"\e07e"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-medical:before{content:"\e05c"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-holding-water:before{content:"\f4c1"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-sparkles:before{content:"\e05d"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-hands-wash:before{content:"\e05e"}.fa-handshake:before{content:"\f2b5"}.fa-handshake-alt-slash:before{content:"\e05f"}.fa-handshake-slash:before{content:"\e060"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-wizard:before{content:"\f6e8"}.fa-hdd:before{content:"\f0a0"}.fa-head-side-cough:before{content:"\e061"}.fa-head-side-cough-slash:before{content:"\e062"}.fa-head-side-mask:before{content:"\e063"}.fa-head-side-virus:before{content:"\e064"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hive:before{content:"\e07f"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hospital-user:before{content:"\f80d"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-house-user:before{content:"\e065"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-icons:before{content:"\f86d"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-ideal:before{content:"\e013"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-innosoft:before{content:"\e080"}.fa-instagram:before{content:"\f16d"}.fa-instagram-square:before{content:"\e055"}.fa-instalod:before{content:"\e081"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-house:before{content:"\e066"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lungs:before{content:"\f604"}.fa-lungs-virus:before{content:"\e067"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-mdb:before{content:"\f8ca"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microblog:before{content:"\e01a"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mixer:before{content:"\e056"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse:before{content:"\f8cc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-octopus-deploy:before{content:"\e082"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-orcid:before{content:"\f8d2"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-arrows:before{content:"\e068"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-perbyte:before{content:"\e083"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before{content:"\f879"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-square-alt:before{content:"\f87b"}.fa-phone-volume:before{content:"\f2a0"}.fa-photo-video:before{content:"\f87c"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-square:before{content:"\e01e"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-plane-slash:before{content:"\e069"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pump-medical:before{content:"\e06a"}.fa-pump-soap:before{content:"\e06b"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-remove-format:before{content:"\f87d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-rust:before{content:"\e07a"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-shield-virus:before{content:"\e06c"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopify:before{content:"\e057"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sink:before{content:"\e06d"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-soap:before{content:"\e06e"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-down-alt:before{content:"\f884"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-amount-up-alt:before{content:"\f885"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stackpath:before{content:"\f842"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-stopwatch-20:before{content:"\e06f"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-store-alt-slash:before{content:"\e070"}.fa-store-slash:before{content:"\e071"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swift:before{content:"\f8e1"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-tiktok:before{content:"\e07b"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toilet-paper-slash:before{content:"\e072"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-trailer:before{content:"\e041"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbraco:before{content:"\f8e8"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-uncharted:before{content:"\e084"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-unity:before{content:"\e049"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-unsplash:before{content:"\e07c"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-users-slash:before{content:"\e073"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-vest:before{content:"\e085"}.fa-vest-patches:before{content:"\e086"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-virus:before{content:"\e074"}.fa-virus-slash:before{content:"\e075"}.fa-viruses:before{content:"\e076"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-voicemail:before{content:"\f897"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-watchman-monitoring:before{content:"\e087"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wodu:before{content:"\e088"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.fab,.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} -------------------------------------------------------------------------------- /css/options.css: -------------------------------------------------------------------------------- 1 | .tooltip-inner { 2 | min-width: 300px; 3 | } 4 | 5 | form { 6 | min-width: 300px; 7 | } 8 | 9 | .overseerr-icon { 10 | width: 60px; 11 | height: 60px; 12 | } 13 | 14 | .row { 15 | margin-left: 0; 16 | margin-right: 0; 17 | } 18 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | #overseerr-assistant-container { 2 | font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 3 | sans-serif, Apple Color Emoji, Segoe UI Emoji; 4 | } 5 | 6 | .overseerr-container { 7 | height: 56px; 8 | box-sizing: border-box; 9 | } 10 | 11 | .overseerr-icon { 12 | border-style: solid; 13 | display: block; 14 | max-width: 100%; 15 | height: auto; 16 | height: 32px; 17 | width: 32px; 18 | margin-right: 10px; 19 | border: 0; 20 | } 21 | 22 | .overseerr-spin { 23 | margin-left: 12px; 24 | display: inline-block; 25 | width: 24px; 26 | height: 24px; 27 | border: 3px solid rgba(255, 255, 255, .3); 28 | border-radius: 50%; 29 | border-top-color: #7052d0; 30 | animation: spin 1s ease-in-out infinite; 31 | -webkit-animation: spin 1s ease-in-out infinite; 32 | } 33 | @keyframes spin { 34 | to { 35 | -webkit-transform: rotate(360deg); 36 | } 37 | } 38 | @-webkit-keyframes spin { 39 | to { 40 | -webkit-transform: rotate(360deg); 41 | } 42 | } 43 | 44 | .overseerr-text-white { 45 | color: white !important; 46 | text-decoration: none; 47 | } 48 | 49 | .oa-plex-left-margin{ 50 | margin-left: 40px; 51 | } 52 | 53 | .oa-text-sm { 54 | font-size: 0.875rem; 55 | line-height: 1.25rem; 56 | } 57 | 58 | .overseerr-border { 59 | border: 5px; 60 | border-color: white; 61 | } 62 | 63 | .oa-relative { 64 | position: relative; 65 | } 66 | 67 | .oa-flex { 68 | display: flex; 69 | } 70 | 71 | .oa-flex-row { 72 | flex-direction: row; 73 | } 74 | 75 | .oa-inline-flex { 76 | display: inline-flex; 77 | } 78 | 79 | .oa-h-full { 80 | height: 100%; 81 | } 82 | 83 | .oa-font-medium { 84 | font-weight: 500; 85 | } 86 | 87 | .oa-leading-5 { 88 | line-height: 1.25rem; 89 | } 90 | .oa-leading-6 { 91 | line-height: 1.5rem; 92 | } 93 | 94 | .oa-items-center { 95 | align-items: center; 96 | } 97 | 98 | .oa-text-white { 99 | --tw-text-opacity: 1; 100 | color: rgba(255, 255, 255, var(--tw-text-opacity)); 101 | } 102 | 103 | .oa-border { 104 | border: solid; 105 | border-width: 1px; 106 | } 107 | 108 | .oa-bg-gradient-to-br { 109 | background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); 110 | } 111 | 112 | .oa-bg-transparent { 113 | background-color: transparent; 114 | } 115 | 116 | .oa-bg-gray-800 { 117 | --tw-bg-opacity: 1; 118 | background-color: rgba(31, 41, 55, var(--tw-bg-opacity)); 119 | } 120 | .hover\:oa-bg-gray-800:hover { 121 | --tw-bg-opacity: 1; 122 | background-color: rgba(31, 41, 55, var(--tw-bg-opacity)); 123 | } 124 | 125 | .oa-from-gray-800 { 126 | --tw-gradient-from: #1f2937; 127 | --tw-gradient-stops: var(--tw-gradient-from), 128 | var(--tw-gradient-to, rgba(31, 41, 55, 0)); 129 | } 130 | .oa-from-gray-900 { 131 | --tw-gradient-from: #111827; 132 | --tw-gradient-stops: var(--tw-gradient-from), 133 | var(--tw-gradient-to, rgba(17, 24, 39, 0)); 134 | } 135 | .oa-from-red-900 { 136 | --tw-gradient-from: #7f1d1d; 137 | --tw-gradient-stops: var(--tw-gradient-from), 138 | var(--tw-gradient-to, rgba(127, 29, 29, 0)); 139 | } 140 | .oa-from-indigo-400 { 141 | --tw-gradient-from: #818cf8; 142 | --tw-gradient-stops: var(--tw-gradient-from), 143 | var(--tw-gradient-to, rgba(129, 140, 248, 0)); 144 | } 145 | .oa-from-indigo-600 { 146 | --tw-gradient-from: #4f46e5; 147 | --tw-gradient-stops: var(--tw-gradient-from), 148 | var(--tw-gradient-to, rgba(79, 70, 229, 0)); 149 | } 150 | .oa-to-gray-900 { 151 | --tw-gradient-to: #111827; 152 | } 153 | .oa-to-transparent { 154 | --tw-gradient-to: transparent; 155 | } 156 | .oa-to-purple-400 { 157 | --tw-gradient-to: #a78bfa; 158 | } 159 | .oa-to-purple-600 { 160 | --tw-gradient-to: #7c3aed; 161 | } 162 | .hover\:oa-from-indigo-500:hover { 163 | --tw-gradient-from: #6366f1; 164 | --tw-gradient-stops: var(--tw-gradient-from), 165 | var(--tw-gradient-to, rgba(99, 102, 241, 0)); 166 | } 167 | .hover\:oa-to-purple-500:hover { 168 | --tw-gradient-to: #8b5cf6; 169 | } 170 | .oa-bg-indigo-600 { 171 | --tw-bg-opacity: 1; 172 | background-color: rgba(79, 70, 229, var(--tw-bg-opacity)); 173 | } 174 | .oa-border-indigo-600 { 175 | --tw-border-opacity: 1; 176 | border-color: rgba(79, 70, 229, var(--tw-border-opacity)); 177 | } 178 | .oa-bg-indigo-700 { 179 | --tw-bg-opacity: 1; 180 | background-color: rgba(67, 56, 202, var(--tw-bg-opacity)); 181 | } 182 | .active\:oa-bg-indigo-700:active { 183 | --tw-bg-opacity: 1; 184 | background-color: rgba(67, 56, 202, var(--tw-bg-opacity)); 185 | } 186 | .active\:oa-border-indigo-700:active { 187 | --tw-border-opacity: 1; 188 | border-color: rgba(67, 56, 202, var(--tw-border-opacity)); 189 | } 190 | .oa-bg-indigo-500 { 191 | --tw-bg-opacity: 1; 192 | background-color: rgba(99, 102, 241, var(--tw-bg-opacity)); 193 | } 194 | .hover\:oa-bg-indigo-500:hover { 195 | --tw-bg-opacity: 1; 196 | background-color: rgba(99, 102, 241, var(--tw-bg-opacity)); 197 | } 198 | .hover\:oa-border-indigo-500:hover { 199 | --tw-border-opacity: 1; 200 | border-color: rgba(99, 102, 241, var(--tw-border-opacity)); 201 | } 202 | .oa-border-gray-400 { 203 | --tw-border-opacity: 1; 204 | border-color: rgba(156, 163, 175, var(--tw-border-opacity)); 205 | } 206 | .oa-border-gray-200 { 207 | --tw-border-opacity: 1; 208 | border-color: rgba(229, 231, 235, var(--tw-border-opacity)); 209 | } 210 | .hover\:oa-border-gray-200:hover { 211 | --tw-border-opacity: 1; 212 | border-color: rgba(229, 231, 235, var(--tw-border-opacity)); 213 | } 214 | .focus\:oa-border-gray-100:focus { 215 | --tw-border-opacity: 1; 216 | border-color: rgba(243, 244, 246, var(--tw-border-opacity)); 217 | } 218 | .active\:oa-border-gray-100:active { 219 | --tw-border-opacity: 1; 220 | border-color: rgba(243, 244, 246, var(--tw-border-opacity)); 221 | } 222 | 223 | .oa-button-md svg, 224 | .oa-plex-button svg, 225 | button.input-action svg { 226 | margin-left: 0.5rem; 227 | margin-right: 0.5rem; 228 | height: 1.25rem; 229 | width: 1.25rem; 230 | } 231 | .oa-button-md svg:first-child, 232 | .oa-plex-button svg:first-child, 233 | button.input-action svg:first-child { 234 | margin-left: 0; 235 | } 236 | .oa-button-md svg:last-child, 237 | .oa-plex-button svg:last-child, 238 | button.input-action svg:last-child { 239 | margin-right: 0; 240 | } 241 | 242 | .oa-outline-none { 243 | outline: 2px solid transparent; 244 | outline-offset: 2px; 245 | } 246 | 247 | .oa-z-10 { 248 | z-index: 10; 249 | } 250 | .oa-z-20 { 251 | z-index: 20; 252 | } 253 | 254 | .oa-border-gray-500 { 255 | --tw-border-opacity: 1; 256 | border-color: rgba(107, 114, 128, var(--tw-border-opacity)); 257 | } 258 | 259 | .oa-bg-gray-500 { 260 | --tw-bg-opacity: 1; 261 | background-color: rgba(107, 114, 128, var(--tw-bg-opacity)); 262 | } 263 | 264 | .oa-opacity-0 { 265 | opacity: 0; 266 | } 267 | 268 | .oa-opacity-100 { 269 | opacity: 1; 270 | } 271 | 272 | .oa-ring { 273 | --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 274 | var(--tw-ring-offset-width) var(--tw-ring-offset-color); 275 | --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 276 | calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color); 277 | box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 278 | var(--tw-shadow, 0 0 #0000); 279 | } 280 | 281 | .oa-group:hover img.avatar-sm { 282 | --tw-scale-x: 1.05; 283 | --tw-scale-y: 1.05; 284 | transform: var(--tw-transform); 285 | } 286 | .oa-group:hover .oa-group-hover\:oa-border-gray-500 { 287 | --tw-border-opacity: 1; 288 | border-color: rgba(107, 114, 128, var(--tw-border-opacity)); 289 | } 290 | .oa-group:hover .oa-group-hover\:oa-bg-gray-500 { 291 | --tw-bg-opacity: 1; 292 | background-color: rgba(107, 114, 128, var(--tw-bg-opacity)); 293 | } 294 | .oa-group:hover .oa-group-hover\:oa-text-white { 295 | --tw-text-opacity: 1; 296 | color: rgba(255, 255, 255, var(--tw-text-opacity)); 297 | } 298 | .oa-group:hover .oa-group-hover\:underline { 299 | text-decoration: underline; 300 | } 301 | .oa-group:hover .oa-group-hover\:oa-opacity-100 { 302 | opacity: 1; 303 | } 304 | .oa-group:focus .oa-group-focus\:border-blue-300 { 305 | --tw-border-opacity: 1; 306 | border-color: rgba(147, 197, 253, var(--tw-border-opacity)); 307 | } 308 | .oa-group:focus .oa-group-focus\:oa-ring { 309 | --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); 310 | --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color); 311 | box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 312 | var(--tw-shadow, 0 0 #0000); 313 | } 314 | 315 | .oa-py-4 { 316 | padding-top: 1rem; 317 | padding-bottom: 1rem; 318 | } 319 | .oa-px-4 { 320 | padding-left: 1rem; 321 | padding-right: 1rem; 322 | } 323 | .oa-py-14 { 324 | padding-top: 3.5rem; 325 | padding-bottom: 3.5rem; 326 | } 327 | .oa-py-2 { 328 | padding-top: 0.5rem; 329 | padding-bottom: 0.5rem; 330 | } 331 | .oa-px-10 { 332 | padding-left: 2.5rem; 333 | padding-right: 2.5rem; 334 | } 335 | .oa-py-8 { 336 | padding-top: 2rem; 337 | padding-bottom: 2rem; 338 | } 339 | .oa-py-0 { 340 | padding-top: 0; 341 | padding-bottom: 0; 342 | } 343 | .oa-py-1 { 344 | padding-top: 0.25rem; 345 | padding-bottom: 0.25rem; 346 | } 347 | .oa-px-2 { 348 | padding-left: 0.5rem; 349 | padding-right: 0.5rem; 350 | } 351 | .oa-px-1 { 352 | padding-left: 0.25rem; 353 | padding-right: 0.25rem; 354 | } 355 | .oa-px-3 { 356 | padding-left: 0.75rem; 357 | padding-right: 0.75rem; 358 | } 359 | .oa-py-24 { 360 | padding-top: 6rem; 361 | padding-bottom: 6rem; 362 | } 363 | .oa-py-3 { 364 | padding-top: 0.75rem; 365 | padding-bottom: 0.75rem; 366 | } 367 | .oa-px-5 { 368 | padding-left: 1.25rem; 369 | padding-right: 1.25rem; 370 | } 371 | .oa-py-6 { 372 | padding-top: 1.5rem; 373 | padding-bottom: 1.5rem; 374 | } 375 | .oa-px-6 { 376 | padding-left: 1.5rem; 377 | padding-right: 1.5rem; 378 | } 379 | .oa-py-12 { 380 | padding-top: 3rem; 381 | padding-bottom: 3rem; 382 | } 383 | .oa-py-5 { 384 | padding-top: 1.25rem; 385 | padding-bottom: 1.25rem; 386 | } 387 | 388 | .oa-ease-in-out { 389 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 390 | } 391 | 392 | .oa-transition { 393 | transition-property: background-color, border-color, color, fill, stroke, 394 | opacity, box-shadow, transform, filter, -webkit-backdrop-filter; 395 | transition-property: background-color, border-color, color, fill, stroke, 396 | opacity, box-shadow, transform, filter, backdrop-filter; 397 | transition-property: background-color, border-color, color, fill, stroke, 398 | opacity, box-shadow, transform, filter, backdrop-filter, 399 | -webkit-backdrop-filter; 400 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 401 | transition-duration: 0.15s; 402 | } 403 | 404 | .oa-duration-300 { 405 | transition-duration: 0.3s; 406 | } 407 | .oa-duration-200 { 408 | transition-duration: 0.2s; 409 | } 410 | .oa-duration-150 { 411 | transition-duration: 0.15s; 412 | } 413 | .oa-duration-100 { 414 | transition-duration: 0.1s; 415 | } 416 | .oa-duration-75 { 417 | transition-duration: 75ms; 418 | } 419 | .oa-duration-500 { 420 | transition-duration: 0.5s; 421 | } 422 | 423 | .oa-rounded-xl { 424 | border-radius: 0.75em; 425 | } 426 | .oa-rounded-full { 427 | border-radius: 9999px; 428 | } 429 | .oa-rounded-md { 430 | border-radius: 0.375em; 431 | } 432 | .oa-rounded-lg { 433 | border-radius: 0.5em; 434 | } 435 | .oa-rounded-b-xl { 436 | border-bottom-right-radius: 0.75em; 437 | border-bottom-left-radius: 0.75em; 438 | } 439 | .oa-rounded-l-md { 440 | border-top-left-radius: 0.375em; 441 | border-bottom-left-radius: 0.375em; 442 | } 443 | .oa-rounded-r-md { 444 | border-top-right-radius: 0.375em; 445 | border-bottom-right-radius: 0.375em; 446 | } 447 | .oa-rounded-bl-lg { 448 | border-bottom-left-radius: 0.5em; 449 | } 450 | .oa-rounded-br-lg { 451 | border-bottom-right-radius: 0.5em; 452 | } 453 | 454 | .oa-m-1 { 455 | margin: 0.25rem; 456 | } 457 | .oa-m-4 { 458 | margin: 1rem; 459 | } 460 | .oa-my-0 { 461 | margin-top: 0; 462 | margin-bottom: 0; 463 | } 464 | .oa-my-1 { 465 | margin-top: 0.25rem; 466 | margin-bottom: 0.25rem; 467 | } 468 | .oa-mx-2 { 469 | margin-left: 0.5rem; 470 | margin-right: 0.5rem; 471 | } 472 | .oa-my-2 { 473 | margin-top: 0.5rem; 474 | margin-bottom: 0.5rem; 475 | } 476 | .oa-my-4 { 477 | margin-top: 1rem; 478 | margin-bottom: 1rem; 479 | } 480 | .oa-mt-2 { 481 | margin-top: 0.5rem; 482 | } 483 | .oa-ml-2 { 484 | margin-left: 0.5rem; 485 | } 486 | .oa-mt-1 { 487 | margin-top: 0.25rem; 488 | } 489 | .oa-mb-5 { 490 | margin-bottom: 1.25rem; 491 | } 492 | .oa-mb-2 { 493 | margin-bottom: 0.5rem; 494 | } 495 | .oa-mr-2 { 496 | margin-right: 0.5rem; 497 | } 498 | .oa-mb-16 { 499 | margin-bottom: 4rem; 500 | } 501 | .oa-mb-6 { 502 | margin-bottom: 1.5rem; 503 | } 504 | .oa-mt-8 { 505 | margin-top: 2rem; 506 | } 507 | .oa-mt-10 { 508 | margin-top: 2.5rem; 509 | } 510 | .oa-mb-10 { 511 | margin-bottom: 2.5rem; 512 | } 513 | .oa-mb-4 { 514 | margin-bottom: 1rem; 515 | } 516 | .oa-ml-3 { 517 | margin-left: 0.75rem; 518 | } 519 | .oa-mt-3 { 520 | margin-top: 0.75rem; 521 | } 522 | .oa-mt-4 { 523 | margin-top: 1rem; 524 | } 525 | .oa-ml-1 { 526 | margin-left: 0.25rem; 527 | } 528 | .oa-mr-1 { 529 | margin-right: 0.25rem; 530 | } 531 | .oa-mb-8 { 532 | margin-bottom: 2rem; 533 | } 534 | .oa-mr-0 { 535 | margin-right: 0; 536 | } 537 | .oa-mr-6 { 538 | margin-right: 1.5rem; 539 | } 540 | .oa-mb-1 { 541 | margin-bottom: 0.25rem; 542 | } 543 | .oa-mb-3 { 544 | margin-bottom: 0.75rem; 545 | } 546 | .oa-mt-6 { 547 | margin-top: 1.5rem; 548 | } 549 | .oa-mt-16 { 550 | margin-top: 4rem; 551 | } 552 | .oa-ml-4 { 553 | margin-left: 1rem; 554 | } 555 | .oa-mt-5 { 556 | margin-top: 1.25rem; 557 | } 558 | .oa-mt-64 { 559 | margin-top: 16rem; 560 | } 561 | .oa-ml-8 { 562 | margin-left: 2rem; 563 | } 564 | .oa-mr-3 { 565 | margin-right: 0.75rem; 566 | } 567 | .oa-mb-12 { 568 | margin-bottom: 3rem; 569 | } 570 | 571 | -------------------------------------------------------------------------------- /images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/images/icon.png -------------------------------------------------------------------------------- /images/screenshot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/images/screenshot-1.png -------------------------------------------------------------------------------- /images/screenshot-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/images/screenshot-2.png -------------------------------------------------------------------------------- /images/screenshot-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/images/screenshot-3.png -------------------------------------------------------------------------------- /images/screenshot-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/images/screenshot-4.png -------------------------------------------------------------------------------- /images/screenshot-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/images/screenshot-5.png -------------------------------------------------------------------------------- /js/content-scripts/allocine.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, allocineId, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = 'div.bam-container'; 4 | containerOptions.textClass = 'text-sm'; 5 | containerOptions.containerClass = 'oa-mt-2 oa-py-2'; 6 | containerOptions.plexButtonClass = 'oa-bg-gray-800'; 7 | containerOptions.badgeBackground = '#032541'; 8 | 9 | mediaType = document.location.pathname.startsWith('/film') ? 'movie' : 'tv'; 10 | 11 | const allocineRegex = /\/(?:film|series)\/\w*=(\d+)(?:\w|-|.)*/; 12 | let matches = document.location.pathname.match(allocineRegex); 13 | if (matches !== null && matches.length > 1) { 14 | allocineId = parseInt(matches[1]); 15 | console.log(`Allocine id: ${allocineId}`); 16 | 17 | let title = $('div.titlebar-title.titlebar-title-lg').text(); 18 | 19 | let releaseYear = null; 20 | if (mediaType === 'movie') { 21 | let releaseDate = $('a.xXx.date.blue-link').text(); 22 | let dateMatches = releaseDate.match(/\s*\d+\s\w+\s(\d{4})\s*/); 23 | if (dateMatches !== null && dateMatches.length > 1) { 24 | releaseYear = parseInt(dateMatches[1]); 25 | } 26 | } 27 | 28 | initializeContainer(); 29 | insertSpinner(); 30 | 31 | pullStoredData(function () { 32 | if (!userId) { 33 | removeSpinner(); 34 | insertNotLoggedInButton(); 35 | return; 36 | } 37 | 38 | chrome.runtime.sendMessage({contentScriptQuery: 'search', title: title}, json => { 39 | json.results = json.results.filter((result) => result.mediaType === mediaType); 40 | if (mediaType === 'movie' && releaseYear) { 41 | json.results = json.results.filter((result) => result.releaseDate && parseInt(result.releaseDate.slice(0, 4)) === releaseYear); 42 | } 43 | if (json.results.length === 0) { 44 | removeSpinner(); 45 | insertStatusButton('Media not found', 0); 46 | return; 47 | } 48 | const firstResult = json.results[0]; 49 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => { 50 | mediaInfo = json; 51 | tmdbId = json.id; 52 | console.log(`TMDB id: ${tmdbId}`); 53 | removeSpinner(); 54 | fillContainer(json.mediaInfo); 55 | }); 56 | }); 57 | }); 58 | } 59 | 60 | -------------------------------------------------------------------------------- /js/content-scripts/imdb.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, imdbId, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = `div:has(> .ipc-split-button__btn)`; 4 | containerOptions.textClass = 'oa-text-sm'; 5 | containerOptions.containerClass = 'oa-mt-2 oa-py-2'; 6 | containerOptions.badgeBackground = '#313131'; 7 | 8 | 9 | function searchMedia() { 10 | chrome.runtime.sendMessage({contentScriptQuery: 'search', title: `imdb:${imdbId}`}, json => { 11 | if (json.results.length === 0) { 12 | removeSpinner(); 13 | insertStatusButton('Media not found', 0); 14 | return; 15 | } 16 | const firstResult = json.results[0]; 17 | mediaType = firstResult.mediaType; 18 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => { 19 | if (imdbId === json.externalIds.imdbId) { 20 | mediaInfo = json; 21 | tmdbId = json.id; 22 | console.log(`TMDB id: ${tmdbId}`); 23 | removeSpinner(); 24 | fillContainer(json.mediaInfo); 25 | } else { 26 | removeSpinner(); 27 | insertStatusButton('Media not found', 0); 28 | } 29 | }); 30 | }); 31 | } 32 | 33 | 34 | const imdbRegex = /\/title\/(tt\d+)(?:\/|$).*/; 35 | let matches = document.location.pathname.match(imdbRegex); 36 | if (matches !== null && matches.length > 1) { 37 | imdbId = matches[1]; 38 | console.log(`IMDb id: ${imdbId}`); 39 | 40 | initializeContainer(); 41 | insertSpinner(); 42 | 43 | pullStoredData(function () { 44 | if (!userId) { 45 | removeSpinner(); 46 | insertNotLoggedInButton(); 47 | return; 48 | } 49 | chrome.runtime.sendMessage({contentScriptQuery: 'getOverseerrVersion'}, json => { 50 | if (!json.version || json.version.localeCompare("1.29.0", undefined, { numeric: true, sensitivity: 'base' }) < 0) { 51 | chrome.runtime.sendMessage({contentScriptQuery: 'checkJellyseerr'}, isJellyseerr => { 52 | if (isJellyseerr) { 53 | searchMedia(); 54 | } else { 55 | removeSpinner(); 56 | insertStatusButton('Please update to Overseerr 1.29.0+', 0); 57 | return; 58 | } 59 | }); 60 | } else { 61 | searchMedia(); 62 | } 63 | }); 64 | }); 65 | } 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /js/content-scripts/justwatch.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, imdbId, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = `div.title-sidebar > aside > div > button.basic-button:first`; 4 | containerOptions.textClass = ''; 5 | containerOptions.containerClass = 'oa-mt-6 oa-mb-3 oa-py-3'; 6 | containerOptions.badgeBackground = '#313131'; 7 | 8 | let waiting = false; 9 | let currentHref = document.location.href; 10 | 11 | 12 | function searchMedia() { 13 | chrome.runtime.sendMessage({contentScriptQuery: 'search', title: `imdb:${imdbId}`}, json => { 14 | if (json.results.length === 0) { 15 | removeSpinner(); 16 | insertStatusButton('Media not found', 0); 17 | return; 18 | } 19 | const firstResult = json.results[0]; 20 | mediaType = firstResult.mediaType; 21 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => { 22 | if (imdbId === json.externalIds.imdbId) { 23 | mediaInfo = json; 24 | tmdbId = json.id; 25 | console.log(`TMDB id: ${tmdbId}`); 26 | removeSpinner(); 27 | fillContainer(json.mediaInfo); 28 | } else { 29 | removeSpinner(); 30 | insertStatusButton('Media not found', 0); 31 | } 32 | }); 33 | }); 34 | } 35 | 36 | 37 | function processPage() { 38 | if (overseerrContainer) overseerrContainer.remove(); 39 | 40 | if (waiting) { 41 | return; 42 | } 43 | 44 | waiting = true; 45 | waitForElm('div[v-uib-tooltip=IMDB]').then(() => { 46 | waiting = false; 47 | imdbButton = $('div[v-uib-tooltip=IMDB]:first > a'); 48 | 49 | if (imdbButton === null && imdbButton.attr('href') === undefined) { 50 | return; 51 | } 52 | imdbURL = imdbButton.attr('href'); 53 | 54 | const imdbRegex = /\/title\/(tt\d+)(?:\/|$).*/; 55 | let matches = imdbURL.match(imdbRegex); 56 | if (matches !== null && matches.length > 1) { 57 | imdbId = matches[1]; 58 | console.log(`IMDb id: ${imdbId}`); 59 | 60 | initializeContainer(); 61 | insertSpinner(); 62 | 63 | pullStoredData(function () { 64 | if (!userId) { 65 | removeSpinner(); 66 | insertNotLoggedInButton(); 67 | return; 68 | } 69 | chrome.runtime.sendMessage({contentScriptQuery: 'getOverseerrVersion'}, json => { 70 | if (!json.version || json.version.localeCompare("1.29.0", undefined, { numeric: true, sensitivity: 'base' }) < 0) { 71 | chrome.runtime.sendMessage({contentScriptQuery: 'checkJellyseerr'}, isJellyseerr => { 72 | if (isJellyseerr) { 73 | searchMedia(); 74 | } else { 75 | removeSpinner(); 76 | insertStatusButton('Please update to Overseerr 1.29.0+', 0); 77 | return; 78 | } 79 | }); 80 | } else { 81 | searchMedia(); 82 | } 83 | }); 84 | }); 85 | } 86 | }); 87 | } 88 | 89 | window.onload = function() { 90 | var bodyList = document.querySelector("body"); 91 | 92 | var observer = new MutationObserver(function(mutations) { 93 | mutations.forEach(function(mutation) { 94 | if (currentHref != document.location.href) { 95 | currentHref = document.location.href; 96 | processPage(); 97 | } 98 | }); 99 | }); 100 | 101 | var config = { 102 | childList: true, 103 | subtree: true 104 | }; 105 | 106 | observer.observe(bodyList, config); 107 | }; 108 | 109 | processPage(); 110 | -------------------------------------------------------------------------------- /js/content-scripts/letterboxd.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = `div.review.body-text`; 4 | containerOptions.containerClass = 'oa-py-5'; 5 | containerOptions.plexButtonClass = ''; 6 | containerOptions.badgeBackground = '#283038'; 7 | 8 | tmdbButton = $('a[data-track-action=TMDb]:first'); 9 | tmdbURL = tmdbButton.attr('href'); 10 | 11 | if (tmdbURL.includes('/movie/')) { 12 | mediaType = 'movie'; 13 | } else { 14 | mediaType = 'tv'; 15 | } 16 | 17 | const tmdbRegex = new RegExp(`.*\/${mediaType}\/(\\d+)(?:\\w|-)*`); 18 | let matches = tmdbURL.match(tmdbRegex); 19 | if (matches !== null && matches.length > 1) { 20 | tmdbId = parseInt(matches[1]); 21 | console.log(`TMDB id: ${tmdbId}`); 22 | 23 | initializeContainer(); 24 | insertSpinner(); 25 | 26 | pullStoredData(function() { 27 | if (!userId) { 28 | removeSpinner(); 29 | insertNotLoggedInButton(); 30 | return; 31 | } 32 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: tmdbId, mediaType: mediaType}, json => { 33 | mediaInfo = json; 34 | removeSpinner(); 35 | fillContainer(json.mediaInfo); 36 | }); 37 | }); 38 | } 39 | 40 | -------------------------------------------------------------------------------- /js/content-scripts/plex.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = 'div.PrePlayMetadata-container-ud0cxN'; 4 | containerOptions.containerClass = 'oa-mb-3 oa-py-2 oa-plex-left-margin'; 5 | containerOptions.badgeBackground = '#00000099'; 6 | 7 | 8 | function isHashValid(hash) { 9 | return hash.startsWith('#!/provider/'); 10 | } 11 | 12 | function arrangeMargins() { 13 | waitForElm('div.PrePlayMetadata-container-ud0cxN').then((elm) => { 14 | $(elm).css({'margin-bottom': '10px'}); 15 | }); 16 | waitForElm('div.PrePlayMetadata-container-ud0cxN').then((elm) => { 17 | $(elm).css({'margin-top': '20px'}); 18 | }); 19 | } 20 | 21 | function getPlexToken() { 22 | let imageElements = $('img').filter(function() { 23 | return $(this).attr('src').includes('X-Plex-Token'); 24 | }); 25 | if (imageElements.length > 0) { 26 | let pattern = /.X-Plex-Token=(\w+)/; 27 | let matches = imageElements.attr('src').match(pattern); 28 | if (matches !== null && matches.length > 1) { 29 | return matches[1]; 30 | } 31 | } 32 | return null; 33 | } 34 | 35 | function getMediaKey() { 36 | let pattern = /key=%2Flibrary%2Fmetadata%2F(\w+)/; 37 | let matches = document.location.hash.match(pattern); 38 | if (matches !== null && matches.length > 1) { 39 | return matches[1]; 40 | } 41 | return null; 42 | } 43 | 44 | function processPage() { 45 | if (overseerrContainer) overseerrContainer.remove(); 46 | 47 | waitForElm('div.PrePlayMetadata-container-ud0cxN').then(() => { 48 | waitForElm('div.PrePlayMetadata-container-ud0cxN img').then(() => { 49 | initializeContainer(); 50 | insertSpinner(); 51 | arrangeMargins(); 52 | 53 | pullStoredData(function () { 54 | if (!userId) { 55 | removeSpinner(); 56 | insertNotLoggedInButton(); 57 | return; 58 | } 59 | 60 | let plexToken = getPlexToken(); 61 | let mediaKey = getMediaKey(); 62 | 63 | if (plexToken === null || mediaKey === null) { 64 | removeSpinner(); 65 | insertStatusButton('Media not found', 0); 66 | return; 67 | } 68 | 69 | chrome.runtime.sendMessage({contentScriptQuery: 'plexQueryMedia', plexToken: plexToken, mediaKey: mediaKey}, json => { 70 | let guids = json.MediaContainer.Metadata[0].Guid.filter(guid => guid.id.startsWith('tmdb')); 71 | if (guids.length > 0) { 72 | tmdbId = parseInt(guids[0].id.replace('tmdb://', '')); 73 | mediaType = json.MediaContainer.Metadata[0].type === 'movie' ? 'movie' : 'tv'; 74 | console.log(`TMDB id: ${tmdbId}`); 75 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: tmdbId, mediaType: mediaType}, json => { 76 | mediaInfo = json; 77 | removeSpinner(); 78 | fillContainer(json.mediaInfo); 79 | }); 80 | } 81 | }); 82 | }); 83 | }); 84 | }); 85 | } 86 | 87 | window.addEventListener('hashchange', function() { 88 | if (isHashValid(document.location.hash)) { 89 | processPage(); 90 | } 91 | }); 92 | 93 | if (isHashValid(document.location.hash)) { 94 | processPage(); 95 | } 96 | 97 | -------------------------------------------------------------------------------- /js/content-scripts/rottentomatoes.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, allocineId, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = 'div.thumbnail-scoreboard-wrap'; 4 | containerOptions.textClass = 'text-sm'; 5 | containerOptions.containerClass = 'oa-mt-0 oa-mb-6 oa-py-2'; 6 | containerOptions.plexButtonClass = 'oa-bg-gray-800'; 7 | containerOptions.badgeBackground = '#032541'; 8 | 9 | mediaType = document.location.pathname.startsWith('/m') ? 'movie' : 'tv'; 10 | 11 | let title = ''; 12 | if (mediaType === 'tv') { 13 | containerOptions.anchorElement = 'section#topSection'; 14 | title = $('#scoreboard h1.title').text(); 15 | } else { 16 | title = $('#scoreboard h1.title').text(); 17 | } 18 | 19 | if (title) { 20 | initializeContainer(); 21 | insertSpinner(); 22 | 23 | pullStoredData(function () { 24 | if (!userId) { 25 | removeSpinner(); 26 | insertNotLoggedInButton(); 27 | return; 28 | } 29 | 30 | chrome.runtime.sendMessage({contentScriptQuery: 'search', title: title}, json => { 31 | json.results = json.results.filter((result) => result.mediaType === mediaType); 32 | if (json.results.length === 0) { 33 | removeSpinner(); 34 | insertStatusButton('Media not found', 0); 35 | return; 36 | } 37 | const firstResult = json.results[0]; 38 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => { 39 | mediaInfo = json; 40 | tmdbId = json.id; 41 | console.log(`TMDB id: ${tmdbId}`); 42 | removeSpinner(); 43 | fillContainer(json.mediaInfo); 44 | }); 45 | }); 46 | }); 47 | } 48 | -------------------------------------------------------------------------------- /js/content-scripts/senscritique.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, senscritiqueId, currentSenscritiqueUrl, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = 'div[data-testid="product-infos"]'; 4 | containerOptions.textClass = 'text-sm'; 5 | containerOptions.containerClass = 'oa-mt-2 oa-py-2'; 6 | containerOptions.plexButtonClass = 'oa-bg-gray-800'; 7 | containerOptions.badgeBackground = '#032541'; 8 | 9 | mediaType = document.location.pathname.startsWith('/film') ? 'movie' : 'tv'; 10 | const senscritiqueRegex = /\/(?:film|serie)\/\w*\/(\d+)/; 11 | 12 | chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { 13 | if (message.newUrl && message.newUrl !== currentSenscritiqueUrl) { 14 | currentSenscritiqueUrl = message.newUrl; 15 | setTimeout(() => { 16 | checkForMedia(message.newUrl); 17 | }, 500); 18 | } 19 | }); 20 | 21 | chrome.runtime.sendMessage({contentScriptQuery: 'listenForUrlChange'}); 22 | 23 | const checkForMedia = async (urlToCheck) => { 24 | let matches = urlToCheck.match(senscritiqueRegex); 25 | if (matches !== null && matches.length > 1) { 26 | mediaType = document.location.pathname.startsWith('/film') ? 'movie' : 'tv'; 27 | 28 | const titleElement = document.querySelector('h1'); 29 | let title = titleElement.textContent; 30 | let releaseYear = extractYear(document.querySelector('p[data-testid="creators"]').textContent); 31 | let displayedYear = parseInt(titleElement.nextElementSibling.querySelector('p:not([opacity])').textContent); 32 | 33 | initializeContainer(); 34 | insertSpinner(); 35 | 36 | pullStoredData(async function () { 37 | if (!userId) { 38 | removeSpinner(); 39 | insertNotLoggedInButton(); 40 | return; 41 | } 42 | 43 | try { 44 | let json = await sendMessageToBackground({contentScriptQuery: 'search', title: title}); 45 | json.results = filterResults(json.results, releaseYear, displayedYear); 46 | if (json.results.length === 0) { 47 | removeSpinner(); 48 | insertStatusButton('Media not found', 0); 49 | return; 50 | } 51 | const firstResult = json.results[0]; 52 | json = await sendMessageToBackground({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}); 53 | mediaInfo = json; 54 | tmdbId = json.id; 55 | console.log(`TMDB id: ${tmdbId}`); 56 | removeSpinner(); 57 | fillContainer(json.mediaInfo); 58 | } catch (error) { 59 | console.error(error); 60 | } 61 | }); 62 | } 63 | } 64 | 65 | const extractYear = (creatorInformationsString) => { 66 | let parts = creatorInformationsString.split('·'); 67 | if (parts.length >= 3) { 68 | let yearPart = parts[2].trim(); 69 | let regex = /\b(\d{4})\b/; 70 | let match = yearPart.match(regex); 71 | if (match) { 72 | let year = match[1]; 73 | return parseInt(year); 74 | } 75 | } 76 | return false; 77 | } 78 | 79 | const sendMessageToBackground = (message) => { 80 | return new Promise((resolve, reject) => { 81 | chrome.runtime.sendMessage(message, (response) => { 82 | if (chrome.runtime.lastError) { 83 | reject(chrome.runtime.lastError); 84 | } else { 85 | resolve(response); 86 | } 87 | }); 88 | }); 89 | } 90 | 91 | const filterResults = (results, releaseYear, displayedYear) => { 92 | return results.filter((result) => { 93 | return result.mediaType === mediaType && 94 | (!releaseYear || (result.releaseDate && [releaseYear, displayedYear].includes(parseInt(result.releaseDate.slice(0, 4))))); 95 | }); 96 | } -------------------------------------------------------------------------------- /js/content-scripts/taste.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, allocineId, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = 'div.styles_container__2u8xM'; 4 | containerOptions.textClass = 'text-sm'; 5 | containerOptions.containerClass = 'oa-mt-0 oa-mb-6 oa-py-2'; 6 | containerOptions.plexButtonClass = 'oa-bg-gray-800'; 7 | containerOptions.badgeBackground = '#032541'; 8 | 9 | mediaType = document.location.pathname.startsWith('/movies') ? 'movie' : 'tv'; 10 | 11 | let title = $('h1:first').text(); 12 | if (title) { 13 | initializeContainer(); 14 | insertSpinner(); 15 | 16 | pullStoredData(function () { 17 | if (!userId) { 18 | removeSpinner(); 19 | insertNotLoggedInButton(); 20 | return; 21 | } 22 | 23 | chrome.runtime.sendMessage({contentScriptQuery: 'search', title: title}, json => { 24 | json.results = json.results.filter((result) => result.mediaType === mediaType); 25 | if (json.results.length === 0) { 26 | removeSpinner(); 27 | insertStatusButton('Media not found', 0); 28 | return; 29 | } 30 | const firstResult = json.results[0]; 31 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => { 32 | mediaInfo = json; 33 | tmdbId = json.id; 34 | console.log(`TMDB id: ${tmdbId}`); 35 | removeSpinner(); 36 | fillContainer(json.mediaInfo); 37 | }); 38 | }); 39 | }); 40 | } 41 | 42 | -------------------------------------------------------------------------------- /js/content-scripts/tmdb.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = 'ul.auto.actions'; 4 | containerOptions.containerClass = 'oa-py-2'; 5 | containerOptions.badgeBackground = '#032541'; 6 | 7 | mediaType = document.location.pathname.startsWith('/movie') ? 'movie' : 'tv'; 8 | 9 | const tmdbRegex = /\/(?:movie|tv)\/(\d+)(?:\w|-)*/; 10 | let matches = document.location.pathname.match(tmdbRegex); 11 | if (matches !== null && matches.length > 1) { 12 | tmdbId = parseInt(matches[1]); 13 | console.log(`TMDB id: ${tmdbId}`); 14 | 15 | initializeContainer(); 16 | insertSpinner(); 17 | 18 | pullStoredData(function() { 19 | if (!userId) { 20 | removeSpinner(); 21 | insertNotLoggedInButton(); 22 | return; 23 | } 24 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: tmdbId, mediaType: mediaType}, json => { 25 | mediaInfo = json; 26 | removeSpinner(); 27 | fillContainer(json.mediaInfo); 28 | }); 29 | }); 30 | } 31 | 32 | -------------------------------------------------------------------------------- /js/content-scripts/trakt.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, imdbId, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = 'div.readmore'; 4 | containerOptions.textClass = ''; 5 | containerOptions.containerClass = 'oa-mt-0 oa-mb-5 oa-py-3'; 6 | containerOptions.plexButtonClass = 'oa-bg-gray-800'; 7 | containerOptions.badgeBackground = '#444444'; 8 | 9 | mediaType = document.location.pathname.startsWith('/movies') ? 'movie' : 'tv'; 10 | let tmdbMatch = ($("#external-link-tmdb").attr( "href" ) || '').match(/(\d+)(?:\/|$).*/) || []; 11 | let imdbMatch = ($("#external-link-imdb").attr( "href" ) || '').match(/\/title\/(tt\d+)(?:\/|$).*/) || []; 12 | 13 | 14 | function searchMedia() { 15 | chrome.runtime.sendMessage({contentScriptQuery: 'search', title: `imdb:${imdbId}`}, json => { 16 | if (json.results.length === 0) { 17 | removeSpinner(); 18 | insertStatusButton('Media not found', 0); 19 | return; 20 | } 21 | const firstResult = json.results[0]; 22 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => { 23 | mediaInfo = json; 24 | tmdbId = json.id; 25 | console.log(`TMDB id: ${tmdbId}`); 26 | removeSpinner(); 27 | fillContainer(json.mediaInfo); 28 | }); 29 | }); 30 | } 31 | 32 | 33 | if(tmdbMatch.length > 0 || imdbMatch.length > 1) { 34 | waitForElm(containerOptions.anchorElement).then(() => { 35 | initializeContainer(); 36 | insertSpinner(); 37 | 38 | pullStoredData(function() { 39 | if (!userId) { 40 | removeSpinner(); 41 | insertNotLoggedInButton(); 42 | return; 43 | } 44 | 45 | if(tmdbMatch.length > 0) { 46 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: tmdbMatch[0], mediaType: mediaType}, json => { 47 | if (json) { 48 | mediaInfo = json; 49 | tmdbId = json.id; 50 | console.log(`TMDB id: ${tmdbId}`); 51 | removeSpinner(); 52 | fillContainer(json.mediaInfo); 53 | } else { 54 | removeSpinner(); 55 | insertStatusButton('Media not found', 0); 56 | } 57 | }); 58 | } else if (imdbMatch.length > 1) { 59 | imdbId = imdbMatch[1]; 60 | console.log(`IMDb id: ${imdbId}`); 61 | 62 | chrome.runtime.sendMessage({contentScriptQuery: 'getOverseerrVersion'}, json => { 63 | if (!json.version || json.version.localeCompare("1.29.0", undefined, { numeric: true, sensitivity: 'base' }) < 0) { 64 | chrome.runtime.sendMessage({contentScriptQuery: 'checkJellyseerr'}, isJellyseerr => { 65 | if (isJellyseerr) { 66 | searchMedia(); 67 | } else { 68 | removeSpinner(); 69 | insertStatusButton('Please update to Overseerr 1.29.0+', 0); 70 | return; 71 | } 72 | }); 73 | } else { 74 | searchMedia(); 75 | } 76 | }); 77 | } 78 | }); 79 | }); 80 | } 81 | -------------------------------------------------------------------------------- /js/content-scripts/tvdb.js: -------------------------------------------------------------------------------- 1 | let overseerrContainer, imdbId, tmdbId, mediaType, mediaInfo; 2 | 3 | containerOptions.anchorElement = '#translations'; 4 | containerOptions.textClass = 'text-sm'; 5 | containerOptions.containerClass = 'oa-mb-2 oa-py-3'; 6 | containerOptions.badgeBackground = '#313131'; 7 | 8 | mediaType = document.location.pathname.startsWith('/movies') ? 'movie' : 'tv'; 9 | let tmdbMatch = ($("a[href*='themoviedb']", $('#series_basic_info')).attr( "href" ) || '').match(/(\d+)(?:\/|$).*/) || []; 10 | let imdbMatch = ($("a[href*='/title/tt']", $('#series_basic_info')).attr( "href" ) || '').match(/\/title\/(tt\d+)(?:\/|$).*/) || []; 11 | 12 | 13 | function searchMedia() { 14 | chrome.runtime.sendMessage({contentScriptQuery: 'search', title: `imdb:${imdbId}`}, json => { 15 | if (json.results.length === 0) { 16 | removeSpinner(); 17 | insertStatusButton('Media not found', 0); 18 | return; 19 | } 20 | const firstResult = json.results[0]; 21 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => { 22 | mediaInfo = json; 23 | tmdbId = json.id; 24 | console.log(`TMDB id: ${tmdbId}`); 25 | removeSpinner(); 26 | fillContainer(json.mediaInfo); 27 | }); 28 | }); 29 | } 30 | 31 | 32 | if(tmdbMatch.length > 0 || imdbMatch.length > 1) { 33 | initializeContainer(); 34 | insertSpinner(); 35 | 36 | pullStoredData(function() { 37 | if (!userId) { 38 | removeSpinner(); 39 | insertNotLoggedInButton(); 40 | return; 41 | } 42 | 43 | if(tmdbMatch.length > 0) { 44 | chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: tmdbMatch[0], mediaType: mediaType}, json => { 45 | if (json) { 46 | mediaInfo = json; 47 | tmdbId = json.id; 48 | console.log(`TMDB id: ${tmdbId}`); 49 | removeSpinner(); 50 | fillContainer(json.mediaInfo); 51 | } else { 52 | removeSpinner(); 53 | insertStatusButton('Media not found', 0); 54 | } 55 | }); 56 | } else if (imdbMatch.length > 1) { 57 | imdbId = imdbMatch[1]; 58 | console.log(`IMDb id: ${imdbId}`); 59 | 60 | chrome.runtime.sendMessage({contentScriptQuery: 'getOverseerrVersion'}, json => { 61 | if (!json.version || json.version.localeCompare("1.29.0", undefined, { numeric: true, sensitivity: 'base' }) < 0) { 62 | chrome.runtime.sendMessage({contentScriptQuery: 'checkJellyseerr'}, isJellyseerr => { 63 | if (isJellyseerr) { 64 | searchMedia(); 65 | } else { 66 | removeSpinner(); 67 | insertStatusButton('Please update to Overseerr 1.29.0+', 0); 68 | return; 69 | } 70 | }); 71 | } else { 72 | searchMedia(); 73 | } 74 | }); 75 | } 76 | }); 77 | } 78 | 79 | 80 | -------------------------------------------------------------------------------- /js/lib/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v4.5.0 (https://getbootstrap.com/) 3 | * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t,e){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),e.fn.emulateTransitionEnd=l,e.event.special[c.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var h="alert",u=e.fn[h],d=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){var n=c.getSelectorFromElement(t),i=!1;return n&&(i=document.querySelector(n)),i||(i=e(t).closest(".alert")[0]),i},n._triggerCloseEvent=function(t){var n=e.Event("close.bs.alert");return e(t).trigger(n),n},n._removeElement=function(t){var n=this;if(e(t).removeClass("show"),e(t).hasClass("fade")){var i=c.getTransitionDurationFromElement(t);e(t).one(c.TRANSITION_END,(function(e){return n._destroyElement(t,e)})).emulateTransitionEnd(i)}else this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.alert");o||(o=new t(this),i.data("bs.alert",o)),"close"===n&&o[n](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',d._handleDismiss(new d)),e.fn[h]=d._jQueryInterface,e.fn[h].Constructor=d,e.fn[h].noConflict=function(){return e.fn[h]=u,d._jQueryInterface};var f=e.fn.button,g=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,i=e(this._element).closest('[data-toggle="buttons"]')[0];if(i){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains("active"))t=!1;else{var s=i.querySelector(".active");s&&e(s).removeClass("active")}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains("active")),e(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&e(this._element).toggleClass("active"))},n.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.button");i||(i=new t(this),e(this).data("bs.button",i)),"toggle"===n&&i[n]()}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=t.target,i=n;if(e(n).hasClass("btn")||(n=e(n).closest(".btn")[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))t.preventDefault();else{var o=n.querySelector('input:not([type="hidden"])');if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"LABEL"===i.tagName&&o&&"checkbox"===o.type&&t.preventDefault(),g._jQueryInterface.call(e(n),"toggle")}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn")[0];e(n).toggleClass("focus",/^focus(in)?$/.test(t.type))})),e(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one("slid.bs.carousel",(function(){return n.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var o=t>i?"next":"prev";this._slide(o,this._items[t])}},n.dispose=function(){e(this._element).off(p),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=a(a({},v),t),c.typeCheckConfig(m,t,b),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&e(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(e(this._element).on("pointerdown.bs.carousel",(function(t){return n(t)})),e(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(e(this._element).on("touchstart.bs.carousel",(function(t){return n(t)})),e(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),e(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;var r=(o+("prev"===t?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},n._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(".active.carousel-item")),s=e.Event("slide.bs.carousel",{relatedTarget:t,direction:n,from:o,to:i});return e(this._element).trigger(s),s},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(n).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass("active")}},n._slide=function(t,n){var i,o,s,r=this,a=this._element.querySelector(".active.carousel-item"),l=this._getItemIndex(a),h=n||a&&this._getItemByDirection(t,a),u=this._getItemIndex(h),d=Boolean(this._interval);if("next"===t?(i="carousel-item-left",o="carousel-item-next",s="left"):(i="carousel-item-right",o="carousel-item-prev",s="right"),h&&e(h).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(h,s).isDefaultPrevented()&&a&&h){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(h);var f=e.Event("slid.bs.carousel",{relatedTarget:h,direction:s,from:l,to:u});if(e(this._element).hasClass("slide")){e(h).addClass(o),c.reflow(h),e(a).addClass(i),e(h).addClass(i);var g=parseInt(h.getAttribute("data-interval"),10);g?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=g):this._config.interval=this._config.defaultInterval||this._config.interval;var m=c.getTransitionDurationFromElement(a);e(a).one(c.TRANSITION_END,(function(){e(h).removeClass(i+" "+o).addClass("active"),e(a).removeClass("active "+o+" "+i),r._isSliding=!1,setTimeout((function(){return e(r._element).trigger(f)}),0)})).emulateTransitionEnd(m)}else e(a).removeClass("active"),e(h).addClass("active"),this._isSliding=!1,e(this._element).trigger(f);d&&this.cycle()}},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.carousel"),o=a(a({},v),e(this).data());"object"==typeof n&&(o=a(a({},o),n));var s="string"==typeof n?n:o.slide;if(i||(i=new t(this,o),e(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError('No method named "'+s+'"');i[s]()}else o.interval&&o.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(n){var i=c.getSelectorFromElement(this);if(i){var o=e(i)[0];if(o&&e(o).hasClass("carousel")){var s=a(a({},e(o).data()),e(this).data()),r=this.getAttribute("data-slide-to");r&&(s.interval=!1),t._jQueryInterface.call(e(o),s),r&&e(o).data("bs.carousel").to(r),n.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return v}}]),t}();e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",E._dataApiClickHandler),e(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,i=t.length;n0&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass("show")?this.hide():this.show()},n.show=function(){var n,i,o=this;if(!this._isTransitioning&&!e(this._element).hasClass("show")&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains("collapse")}))).length&&(n=null),!(n&&(i=e(n).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var s=e.Event("show.bs.collapse");if(e(this._element).trigger(s),!s.isDefaultPrevented()){n&&(t._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data("bs.collapse",null));var r=this._getDimension();e(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[r]=0,this._triggerArray.length&&e(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),l=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,(function(){e(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[r]="",o.setTransitioning(!1),e(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[r]=this._element[a]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass("show")){var n=e.Event("hide.bs.collapse");if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",c.reflow(this._element),e(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var s=0;s0},i._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a(a({},e.offsets),t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},i._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),a(a({},t),this._config.popperConfig)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof n?n:null),e(this).data("bs.dropdown",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},t._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),o=0,s=i.length;o0&&r--,40===n.which&&rdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:F,popperConfig:null},Y={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},$=function(){function t(t,e){if("undefined"==typeof n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var i=t.prototype;return i.enable=function(){this._isEnabled=!0},i.disable=function(){this._isEnabled=!1},i.toggleEnabled=function(){this._isEnabled=!this._isEnabled},i.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},i.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},i.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var o=c.findShadowRoot(this.element),s=e.contains(null!==o?o:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var r=this.getTipElement(),a=c.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(r).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var u=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(u),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,this._getPopperConfig(h)),e(r).addClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),"out"===n&&t._leave(null,t)};if(e(this.tip).hasClass("fade")){var f=c.getTransitionDurationFromElement(this.tip);e(this.tip).one(c.TRANSITION_END,d).emulateTransitionEnd(f)}else d()}},i.hide=function(t){var n=this,i=this.getTipElement(),o=e.Event(this.constructor.Event.HIDE),s=function(){"show"!==n._hoverState&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(o),!o.isDefaultPrevented()){if(e(i).removeClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e(this.tip).hasClass("fade")){var r=c.getTransitionDurationFromElement(i);e(i).one(c.TRANSITION_END,s).emulateTransitionEnd(r)}else s();this._hoverState=""}},i.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},i.isWithContent=function(){return Boolean(this.getTitle())},i.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},i.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},i.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(".tooltip-inner")),this.getTitle()),e(t).removeClass("fade show")},i.setElementContent=function(t,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=H(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text())},i.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},i._getPopperConfig=function(t){var e=this;return a(a({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),this.config.popperConfig)},i._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a(a({},e.offsets),t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},i._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},i._getAttachment=function(t){return K[t.toUpperCase()]},i._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==n){var i="hover"===n?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o="hover"===n?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a(a({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},i._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},i._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e(n.getTipElement()).hasClass("show")||"show"===n._hoverState?n._hoverState="show":(clearTimeout(n._timeout),n._hoverState="show",n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){"show"===n._hoverState&&n.show()}),n.config.delay.show):n.show())},i._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState="out",n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){"out"===n._hoverState&&n.hide()}),n.config.delay.hide):n.hide())},i._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},i._getConfig=function(t){var n=e(this.element).data();return Object.keys(n).forEach((function(t){-1!==V.indexOf(t)&&delete n[t]})),"number"==typeof(t=a(a(a({},this.constructor.Default),n),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c.typeCheckConfig(U,t,this.constructor.DefaultType),t.sanitize&&(t.template=H(t.template,t.whiteList,t.sanitizeFn)),t},i._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},i._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(W);null!==n&&n.length&&t.removeClass(n.join(""))},i._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},i._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.tooltip"),o="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,o),e(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return X}},{key:"NAME",get:function(){return U}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Y}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return z}}]),t}();e.fn[U]=$._jQueryInterface,e.fn[U].Constructor=$,e.fn[U].noConflict=function(){return e.fn[U]=M,$._jQueryInterface};var J="popover",G=e.fn[J],Z=new RegExp("(^|\\s)bs-popover\\S+","g"),tt=a(a({},$.Default),{},{placement:"right",trigger:"click",content:"",template:''}),et=a(a({},$.DefaultType),{},{content:"(string|element|function)"}),nt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},it=function(t){var n,i;function s(){return t.apply(this,arguments)||this}i=t,(n=s).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=s.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(".popover-body"),n),t.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(Z);null!==n&&n.length>0&&t.removeClass(n.join(""))},s._jQueryInterface=function(t){return this.each((function(){var n=e(this).data("bs.popover"),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new s(this,i),e(this).data("bs.popover",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},o(s,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return tt}},{key:"NAME",get:function(){return J}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return nt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return et}}]),s}($);e.fn[J]=it._jQueryInterface,e.fn[J].Constructor=it,e.fn[J].noConflict=function(){return e.fn[J]=G,it._jQueryInterface};var ot="scrollspy",st=e.fn[ot],rt={offset:10,method:"auto",target:""},at={offset:"number",method:"string",target:"(string|element)"},lt=function(){function t(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?n:this._config.method,o="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var n,s=c.getSelectorFromElement(t);if(s&&(n=document.querySelector(s)),n){var r=n.getBoundingClientRect();if(r.width||r.height)return[e(n)[i]().top+o,s]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=a(a({},rt),"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var n=e(t.target).attr("id");n||(n=c.getUID(ot),e(t.target).attr("id",n)),t.target="#"+n}return c.typeCheckConfig(ot,t,at),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t li > .active":".active";i=(i=e.makeArray(e(o).find(r)))[i.length-1]}var a=e.Event("hide.bs.tab",{relatedTarget:this._element}),l=e.Event("show.bs.tab",{relatedTarget:i});if(i&&e(i).trigger(a),e(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(n=document.querySelector(s)),this._activate(this._element,o);var h=function(){var n=e.Event("hidden.bs.tab",{relatedTarget:t._element}),o=e.Event("shown.bs.tab",{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(o)};n?this._activate(n,n.parentNode,h):h()}}},n.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(t,n,i){var o=this,s=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(".active"):e(n).find("> li > .active"))[0],r=i&&s&&e(s).hasClass("fade"),a=function(){return o._transitionComplete(t,s,i)};if(s&&r){var l=c.getTransitionDurationFromElement(s);e(s).removeClass("show").one(c.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},n._transitionComplete=function(t,n,i){if(n){e(n).removeClass("active");var o=e(n.parentNode).find("> .dropdown-menu .active")[0];o&&e(o).removeClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&e(t.parentNode).hasClass("dropdown-menu")){var s=e(t).closest(".dropdown")[0];if(s){var r=[].slice.call(s.querySelectorAll(".dropdown-toggle"));e(r).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.tab");if(o||(o=new t(this),i.data("bs.tab",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),ht._jQueryInterface.call(e(this),"show")})),e.fn.tab=ht._jQueryInterface,e.fn.tab.Constructor=ht,e.fn.tab.noConflict=function(){return e.fn.tab=ct,ht._jQueryInterface};var ut=e.fn.toast,dt={animation:"boolean",autohide:"boolean",delay:"number"},ft={animation:!0,autohide:!0,delay:500},gt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this,n=e.Event("show.bs.toast");if(e(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),e(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),c.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}},n.hide=function(){if(this._element.classList.contains("show")){var t=e.Event("hide.bs.toast");e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains("show")&&this._element.classList.remove("show"),e(this._element).off("click.dismiss.bs.toast"),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(t){return t=a(a(a({},ft),e(this._element).data()),"object"==typeof t&&t?t:{}),c.typeCheckConfig("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;e(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},n._close=function(){var t=this,n=function(){t._element.classList.add("hide"),e(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,n).emulateTransitionEnd(i)}else n()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.toast");if(o||(o=new t(this,"object"==typeof n&&n),i.data("bs.toast",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n](this)}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return dt}},{key:"Default",get:function(){return ft}}]),t}();e.fn.toast=gt._jQueryInterface,e.fn.toast.Constructor=gt,e.fn.toast.noConflict=function(){return e.fn.toast=ut,gt._jQueryInterface},t.Alert=d,t.Button=g,t.Carousel=E,t.Collapse=D,t.Dropdown=j,t.Modal=R,t.Popover=it,t.Scrollspy=lt,t.Tab=ht,t.Toast=gt,t.Tooltip=$,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})})); 7 | //# sourceMappingURL=bootstrap.min.js.map -------------------------------------------------------------------------------- /js/lib/popper.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) Federico Zivolo 2020 3 | Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 4 | */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1=o.clientWidth&&n>=o.clientHeight}),l=0a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!K(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-us[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f]),E=parseFloat(w['border'+f+'Width']),v=b-e.offsets.popper[m]-y-E;return v=ee(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,$(v)),ae(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ce.FLIP:p=[n,i];break;case ce.CLOCKWISE:p=G(n);break;case ce.COUNTERCLOCKWISE:p=G(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)f(l.top)||'bottom'===n&&f(a.top)f(o.right),g=f(a.top)f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexOf(n),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u),E=!!t.flipVariationsByContent&&(w&&'start'===r&&c||w&&'end'===r&&h||!w&&'start'===r&&u||!w&&'end'===r&&g),v=y||E;(m||b||v)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),v&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport',flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=D(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottomo.right||t.top>o.bottom||t.rightwindow.devicePixelRatio||!fe),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=B('transform');if(d='bottom'==c?'HTML'===l.nodeName?-l.clientHeight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'HTML'===l.nodeName?-l.clientWidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=le({},E,e.attributes),e.styles=le({},m,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return V(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),V(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ge}); 5 | //# sourceMappingURL=popper.min.js.map -------------------------------------------------------------------------------- /js/overseerr-api.js: -------------------------------------------------------------------------------- 1 | let xhr, xhrVersion = null; 2 | 3 | function getLoggedUser(callback) { 4 | xhr = new XMLHttpRequest(); 5 | xhr.open('GET', `${origin}/api/v1/auth/me`, true); 6 | xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); 7 | xhr.setRequestHeader('X-Api-Key', serverAPIKey); 8 | xhr.onreadystatechange = function() { 9 | if (xhr.readyState === 4) { 10 | try { 11 | const response = JSON.parse(xhr.responseText); 12 | if (response.hasOwnProperty('error')) { 13 | if (callback) callback(false, response.error); 14 | } else { 15 | if (callback) callback(true, null, response); 16 | } 17 | } catch { 18 | if (callback) callback(false, 'Server unreachable'); 19 | } 20 | xhr = null; 21 | } 22 | } 23 | xhr.timeout = 5000; 24 | xhr.ontimeout = function() { 25 | if (callback) callback(false, 'Server unreachable'); 26 | } 27 | xhr.send(); 28 | } 29 | 30 | function getOverseerrVersion(callback) { 31 | xhrVersion = new XMLHttpRequest(); 32 | xhrVersion.open('GET', `${origin}/api/v1/status`, true); 33 | xhrVersion.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); 34 | xhrVersion.setRequestHeader('X-Api-Key', serverAPIKey); 35 | xhrVersion.onreadystatechange = function() { 36 | if (xhrVersion.readyState === 4) { 37 | try { 38 | const response = JSON.parse(xhrVersion.responseText); 39 | if (response.hasOwnProperty('error')) { 40 | if (callback) callback(false, response.error); 41 | } else { 42 | if (callback) callback(true, null, response); 43 | } 44 | } catch { 45 | if (callback) callback(false, 'Server unreachable'); 46 | } 47 | xhrVersion = null; 48 | } 49 | } 50 | xhrVersion.timeout = 5000; 51 | xhrVersion.ontimeout = function() { 52 | if (callback) callback(false, 'Server unreachable'); 53 | } 54 | xhrVersion.send(); 55 | } 56 | -------------------------------------------------------------------------------- /js/overseerr-container.js: -------------------------------------------------------------------------------- 1 | let containerOptions = { 2 | anchorElement: 'body', 3 | textClass: '', 4 | containerClass: '', 5 | plexButtonClass: 'oa-bg-transparent', 6 | badgeBackground: '#313131' 7 | }; 8 | 9 | const mediaStatus = { 10 | 1: 'Unknown', 11 | 2: 'Pending', 12 | 3: 'Processing', 13 | 4: 'Partially Available', 14 | 5: 'Available' 15 | } 16 | 17 | function waitForElm(selector) { 18 | return new Promise(resolve => { 19 | if (document.querySelector(selector)) { 20 | return resolve(document.querySelector(selector)); 21 | } 22 | 23 | const observer = new MutationObserver(mutations => { 24 | if (document.querySelector(selector)) { 25 | resolve(document.querySelector(selector)); 26 | observer.disconnect(); 27 | } 28 | }); 29 | 30 | observer.observe(document.body, { 31 | childList: true, 32 | subtree: true 33 | }); 34 | }); 35 | } 36 | 37 | function initializeContainer() { 38 | if (overseerrContainer) overseerrContainer.remove(); 39 | overseerrContainer = $(`
40 | Overseerr icon 41 |
42 | `); 43 | let anchor = $(`${containerOptions.anchorElement}:first`); 44 | if (!anchor) { 45 | console.error('Anchor element not found for Overseerr container'); 46 | } 47 | overseerrContainer.insertAfter(anchor); 48 | } 49 | 50 | function fillContainer(mediaInfo) { 51 | const status = mediaInfo ? mediaInfo.status : 0; 52 | const isPlex = mediaInfo && mediaInfo.hasOwnProperty('plexUrl'); 53 | let mediaUrl; 54 | if (isPlex) { 55 | mediaUrl = mediaInfo ? mediaInfo.plexUrl : origin; 56 | } else { 57 | mediaUrl = mediaInfo ? mediaInfo.mediaUrl : origin; 58 | } 59 | const requestCount = status > 0 ? mediaInfo.requests.length : 0; 60 | let requestedByCurrentUser = false; 61 | if (requestCount > 0) { 62 | let requestsOfCurrentUser = mediaInfo.requests.filter((request) => request.requestedBy.id === userId); 63 | requestedByCurrentUser = requestsOfCurrentUser.length > 0; 64 | } 65 | 66 | switch (status) { 67 | case 0: // No media info 68 | case 1: // Unknown 69 | insertRequestButton(); 70 | break; 71 | case 2: // Pending 72 | case 3: // Processing 73 | insertStatusButton(mediaStatus[status], requestCount); 74 | if (!requestedByCurrentUser) insertRequestButton(); 75 | else insertRequestedButton(); 76 | break; 77 | case 4: // Partially Available 78 | let availableSeasons = []; 79 | if (mediaInfo.mediaType === 'tv') { 80 | availableSeasons = mediaInfo.seasons 81 | .filter((season) => season.status === 5) 82 | .map((season) => season.seasonNumber); 83 | } 84 | insertStatusButton(mediaStatus[status], null, availableSeasons) 85 | insertMediaButton(mediaUrl, isPlex); 86 | break; 87 | case 5: // Available 88 | insertStatusButton(mediaStatus[status]); 89 | insertMediaButton(mediaUrl, isPlex); 90 | break; 91 | } 92 | } 93 | 94 | function insertSpinner() { 95 | overseerrContainer.append(` 96 |
97 | `); 98 | } 99 | 100 | function removeSpinner() { 101 | overseerrContainer.find('#overseerrSpinner').remove(); 102 | } 103 | 104 | function insertRequestButton() { 105 | overseerrContainer.append(` 106 | 109 | 110 | 111 | 112 | Request 113 | 114 | `); 115 | $('#overseerrRequest').on('click', function() { 116 | removeRequestButton(); 117 | insertSpinner(); 118 | let seasons = []; 119 | if (mediaType === 'tv' && mediaInfo.hasOwnProperty('seasons')) { 120 | seasons = mediaInfo.seasons 121 | .map((season) => season.seasonNumber) 122 | .filter((season) => season > 0); 123 | } 124 | chrome.runtime.sendMessage({ 125 | contentScriptQuery: 'requestMedia', 126 | tmdbId: tmdbId, 127 | mediaType: mediaType, 128 | seasons: seasons 129 | }, json => { 130 | initializeContainer(); 131 | if (!json.hasOwnProperty('media')) { 132 | insertStatusButton('Error'); 133 | return; 134 | } 135 | if (!json.media.hasOwnProperty('requests')) { 136 | json.media.requests = []; 137 | } 138 | json.media.requests.push({requestedBy: {id: userId}}); 139 | fillContainer(json.media); 140 | }); 141 | }); 142 | } 143 | 144 | function removeRequestButton() { 145 | overseerrContainer.find('#overseerrRequest').remove(); 146 | } 147 | 148 | function insertRequestedButton() { 149 | overseerrContainer.append(` 150 | 152 | 153 | 154 | 155 | Requested 156 | 157 | `); 158 | } 159 | 160 | function insertStatusButton(statusText, requestCount, availableSeasons) { 161 | const hasBadge = requestCount > 0 || (availableSeasons && availableSeasons.length > 0); 162 | const href = tmdbId ? `${origin}/${mediaType}/${tmdbId}` : origin; 163 | overseerrContainer.append(` 164 | 166 | ${statusText} 167 | 168 | `); 169 | if (hasBadge) { 170 | let text = ''; 171 | if (requestCount > 0) { 172 | text = `${requestCount} request${requestCount > 1 ? 's' : ''}`; 173 | } else if (availableSeasons && availableSeasons.length > 0) { 174 | text = `Season${availableSeasons.length > 1 ? 's' : ''} ${availableSeasons.join('-')}`; 175 | } 176 | overseerrContainer.append(` 177 | 179 | ${text} 180 | 181 | `); 182 | } 183 | } 184 | 185 | function insertMediaButton(mediaUrl, isPlex) { 186 | overseerrContainer.append(` 187 | 190 | 191 | 192 | 193 | 194 | Play${isPlex ? ' on Plex' : ''} 195 | 196 | `); 197 | } 198 | 199 | function insertNotLoggedInButton() { 200 | overseerrContainer.append(` 201 | 206 | `); 207 | $('#overseerrOptions').on('click', function() { 208 | chrome.runtime.sendMessage({contentScriptQuery: 'openOptionsPage'}); 209 | }); 210 | } 211 | -------------------------------------------------------------------------------- /js/storage.js: -------------------------------------------------------------------------------- 1 | let serverAPIKey, serverPort, serverIp, serverProtocol, serverPath, origin, userId, version; 2 | 3 | 4 | function pullStoredData(callback) { 5 | chrome.storage.sync.get(['serverAPIKey', 'serverIp', 'serverPort', 'serverProtocol', 'serverPath', 'userId', 'overseerrVersion'], function(data) { 6 | serverAPIKey = data.serverAPIKey || ''; 7 | serverIp = data.serverIp || '172.0.0.1'; 8 | serverPort = data.serverPort || 8001; 9 | serverProtocol = data.serverProtocol || 'http'; 10 | serverPath = data.serverPath || '/' 11 | origin = `${serverProtocol}://${serverIp}:${serverPort}${serverPath}`; 12 | if (origin.endsWith('/')) { 13 | origin = origin.slice(0, origin.length - 1); 14 | } 15 | userId = data.userId || undefined; 16 | overseerrVersion = data.overseerrVersion || undefined; 17 | if (callback) callback(data); 18 | }); 19 | } 20 | 21 | function isLoggedIn(callback) { 22 | getLoggedUser(function(userSuccess, userErrorMsg, userResponse) { 23 | getOverseerrVersion(function(versionSuccess, versionErrorMsg, versionResponse) { 24 | userId = userSuccess && versionSuccess ? userResponse.id : null; 25 | version = userSuccess && versionSuccess ? versionResponse.version : null; 26 | chrome.storage.sync.set({ 27 | userId: userId, 28 | overseerrVersion: version 29 | }); 30 | if (callback) callback(userSuccess && versionSuccess, userId); 31 | }); 32 | }); 33 | } 34 | 35 | function setOrigin(apiKey, ip, port, protocol, path, callback) { 36 | serverAPIKey = apiKey; 37 | serverIp = ip; 38 | serverPort = port; 39 | serverProtocol = protocol; 40 | serverPath = path; 41 | origin = `${serverProtocol}://${serverIp}:${serverPort}${serverPath}`; 42 | if (origin.endsWith('/')) { 43 | origin = origin.slice(0, origin.length - 1); 44 | } 45 | chrome.storage.sync.set({ 46 | serverAPIKey: serverAPIKey, 47 | serverIp: serverIp, 48 | serverPort: serverPort, 49 | serverProtocol: serverProtocol, 50 | serverPath: serverPath 51 | }, function () { 52 | if (callback) callback(); 53 | }); 54 | } 55 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Overseerr Assistant", 3 | "version": "1.7.1", 4 | "description": "Browser extension for Overseerr that embeds buttons into IMDb and TMDB web pages to easily request movies and tv shows.", 5 | "permissions": ["storage"], 6 | "host_permissions": ["http://*/", "https://*/"], 7 | "action": { 8 | "default_popup": "popup.html", 9 | "default_icon": { 10 | "16": "images/icon.png", 11 | "32": "images/icon.png", 12 | "48": "images/icon.png", 13 | "128": "images/icon.png" 14 | } 15 | }, 16 | "icons": { 17 | "16": "images/icon.png", 18 | "32": "images/icon.png", 19 | "48": "images/icon.png", 20 | "128": "images/icon.png" 21 | }, 22 | "content_scripts": [{ 23 | "matches": ["https://www.themoviedb.org/movie/*", "https://www.themoviedb.org/tv/*"], 24 | "css": ["css/style.css"], 25 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/tmdb.js"] 26 | }, { 27 | "matches": ["https://www.imdb.com/title/*"], 28 | "css": ["css/style.css"], 29 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/imdb.js"] 30 | }, { 31 | "matches": ["https://www.allocine.fr/film/*", "https://www.allocine.fr/series/*"], 32 | "css": ["css/style.css"], 33 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/allocine.js"] 34 | }, { 35 | "matches": ["https://www.senscritique.com/*"], 36 | "css": ["css/style.css"], 37 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/senscritique.js"] 38 | },{ 39 | "matches": ["https://thetvdb.com/movies/*", "https://thetvdb.com/series/*"], 40 | "css": ["css/style.css"], 41 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/tvdb.js"] 42 | },{ 43 | "matches": ["https://letterboxd.com/film/*"], 44 | "css": ["css/style.css"], 45 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/letterboxd.js"] 46 | },{ 47 | "matches": ["https://www.rottentomatoes.com/m/*", "https://www.rottentomatoes.com/tv/*"], 48 | "css": ["css/style.css"], 49 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/rottentomatoes.js"] 50 | },{ 51 | "matches": ["https://app.plex.tv/desktop/*"], 52 | "css": ["css/style.css"], 53 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/plex.js"] 54 | },{ 55 | "matches": ["https://www.justwatch.com/*"], 56 | "css": ["css/style.css"], 57 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/justwatch.js"] 58 | },{ 59 | "matches": ["https://trakt.tv/movies/*", "https://trakt.tv/shows/*"], 60 | "css": ["css/style.css"], 61 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/trakt.js"] 62 | },{ 63 | "matches": ["https://www.taste.io/movies/*", "https://www.taste.io/tv/*"], 64 | "css": ["css/style.css"], 65 | "js": ["js/lib/jquery-3.5.1.min.js", "js/storage.js", "js/overseerr-container.js", "js/content-scripts/taste.js"] 66 | }], 67 | "options_page": "options.html", 68 | "background": { 69 | "service_worker": "background.js" 70 | }, 71 | "web_accessible_resources": [{ 72 | "resources": ["images/icon.png"], 73 | "matches": [""] 74 | }], 75 | "manifest_version": 3 76 | } 77 | -------------------------------------------------------------------------------- /options.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Overseerr Options 10 | 11 | 12 |
13 | Overseerr icon 14 |
15 |
Overseerr Assistant
16 |
Options
17 |
18 |
19 |
20 |
21 |
22 | 23 | 24 |
25 | Please provide a valid API key 26 |
27 |
28 |
29 |
30 | 31 | 32 |
33 | 34 |
35 | Please provide a valid host 36 |
37 |
38 |
39 | 40 | 41 |
42 |
43 |
44 | 45 | 46 |
47 | 48 |
49 | Please provide a valid path 50 |
51 |
52 |
53 | 54 | 55 |
56 |
57 | 58 | 59 |
60 |
61 | 64 | 67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | 75 |
76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /options.js: -------------------------------------------------------------------------------- 1 | let serverAPIKeyInput = document.getElementById('serverAPIKey'); 2 | let serverIpInput = document.getElementById('serverIp'); 3 | let serverPathInput = document.getElementById('serverPath'); 4 | let serverPortInput = document.getElementById('serverPort'); 5 | let useHTTPSInput = document.getElementById('useHTTPS'); 6 | let spinnerDiv = document.getElementById('spinnerDiv'); 7 | let loginStatusOKDiv = document.getElementById('loginStatusOK'); 8 | let loginStatusKODiv = document.getElementById('loginStatusKO'); 9 | let currentURL = document.getElementById('currentURL'); 10 | 11 | let saveButton = document.getElementById('saveButton'); 12 | let alertDanger = document.getElementById('alertDanger'); 13 | 14 | 15 | function enableSpinner() { 16 | spinnerDiv.innerHTML = ` 17 |
18 |
Checking status...
19 | `; 20 | } 21 | 22 | function disableSpinner() { 23 | spinnerDiv.innerHTML = ``; 24 | } 25 | 26 | function setDangerMessage(message, timeout=3000) { 27 | if (!message) { 28 | alertDanger.hidden = true; 29 | return; 30 | } 31 | alertDanger.innerText = message; 32 | alertDanger.hidden = false; 33 | if (timeout > 0) { 34 | setTimeout(function() { 35 | alertDanger.hidden = true; 36 | alertDanger.innerText = ''; 37 | }, timeout); 38 | } 39 | } 40 | 41 | function getProtocol() { 42 | return useHTTPSInput.checked ? 'https' : 'http'; 43 | } 44 | 45 | function updateLoggedInStatus(callback) { 46 | saveButton.disabled = true; 47 | loginStatusOKDiv.hidden = true; 48 | loginStatusKODiv.hidden = true; 49 | enableSpinner(); 50 | isLoggedIn(function(loggedIn) { 51 | disableSpinner(); 52 | loginStatusOKDiv.hidden = !loggedIn; 53 | loginStatusKODiv.hidden = loggedIn; 54 | saveButton.disabled = false; 55 | if (callback) callback(); 56 | }); 57 | } 58 | 59 | function requestPermission(callback) { 60 | chrome.permissions.contains({ 61 | origins: [`${origin}/`] 62 | }, function(result) { 63 | if (!result) { 64 | chrome.permissions.request({ 65 | origins: [`${origin}/`] 66 | }, function(granted) { 67 | if (callback) { 68 | if (!granted) { 69 | alert('Not granting this permission will make the extension unusable.'); 70 | } 71 | callback(granted); 72 | } 73 | }); 74 | } else if (callback) { 75 | callback(true); 76 | } 77 | }); 78 | } 79 | 80 | function validHost(str) { 81 | let pattern = new RegExp('^((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ // domain name 82 | '((\\d{1,3}\\.){3}\\d{1,3}))$'); // OR ip (v4) address 83 | return !!pattern.test(str); 84 | } 85 | 86 | function validateForm() { 87 | // Host 88 | const value = serverIpInput.value; 89 | const isLocalhost = (value === 'localhost'); 90 | const isServerIPValid = validHost(value) || isLocalhost; 91 | if (isServerIPValid) { 92 | serverIpInput.classList.remove('is-invalid'); 93 | } else { 94 | serverIpInput.classList.add('is-invalid'); 95 | saveButton.disabled = true; 96 | } 97 | // Path 98 | const isValidPath = /^((\/[.\w-]+)*\/{0,1}|\/)$/.test(serverPathInput.value); 99 | if (isValidPath) { 100 | serverPathInput.classList.remove('is-invalid'); 101 | } else { 102 | serverPathInput.classList.add('is-invalid'); 103 | saveButton.disabled = true; 104 | } 105 | // API key 106 | const isValidAPIKey = /^[\w=]{60,70}$/.test(serverAPIKeyInput.value); 107 | if (isValidAPIKey) { 108 | serverAPIKeyInput.classList.remove('is-invalid'); 109 | } else { 110 | serverAPIKeyInput.classList.add('is-invalid'); 111 | saveButton.disabled = true; 112 | } 113 | } 114 | 115 | function requireSaving() { 116 | updateCurrentURL(); 117 | if (xhr !== null) { 118 | xhr.abort(); 119 | } 120 | if (serverIpInput.value === serverIp && 121 | parseInt(serverPortInput.value) === parseInt(serverPort) && 122 | useHTTPSInput.checked === (serverProtocol === 'https') && 123 | serverAPIKeyInput.value === serverAPIKey && 124 | serverPathInput.value === serverPath) { 125 | updateLoggedInStatus(); 126 | } else { 127 | saveButton.disabled = false; 128 | loginStatusOKDiv.hidden = true; 129 | loginStatusKODiv.hidden = true; 130 | } 131 | validateForm(); 132 | } 133 | 134 | function updateCurrentURL() { 135 | portString = `:${serverPortInput.value}`; 136 | if ((useHTTPSInput.checked && serverPortInput.value === '443') || (!useHTTPSInput.checked && serverPortInput.value === '80')) { 137 | portString = ''; 138 | } 139 | currentURL.innerHTML = `${useHTTPSInput.checked ? 'https' : 'http'}://${serverIpInput.value}${portString}${serverPathInput.value}`; 140 | } 141 | 142 | saveButton.onclick = function(ev) { 143 | setOrigin(serverAPIKeyInput.value, serverIpInput.value, serverPortInput.value, getProtocol(), serverPathInput.value, function() { 144 | requestPermission(function(granted) { 145 | updateLoggedInStatus(); 146 | }); 147 | }); 148 | }; 149 | 150 | $(document).ready(function(){ 151 | $('[data-toggle="tooltip"]').tooltip(); 152 | }); 153 | 154 | pullStoredData(function() { 155 | serverAPIKeyInput.value = serverAPIKey; 156 | serverIpInput.value = serverIp; 157 | serverPortInput.value = serverPort; 158 | serverPathInput.value = serverPath; 159 | useHTTPSInput.checked = serverProtocol === 'https'; 160 | 161 | updateCurrentURL(); 162 | 163 | serverAPIKeyInput.oninput = requireSaving; 164 | serverIpInput.oninput = requireSaving; 165 | serverPortInput.oninput = requireSaving; 166 | serverPathInput.oninput = requireSaving; 167 | useHTTPSInput.oninput = requireSaving; 168 | 169 | updateLoggedInStatus(); 170 | }); 171 | -------------------------------------------------------------------------------- /popup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Overseerr 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /popup.js: -------------------------------------------------------------------------------- 1 | chrome.tabs.create({ url: "options.html" }); 2 | -------------------------------------------------------------------------------- /webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RemiRigal/Overseerr-Assistant/564be8c2715d79d79edd3c69d2ffc14de6cf9641/webfonts/fa-solid-900.woff2 --------------------------------------------------------------------------------