Giter Site home page Giter Site logo

buzz / imdb-link-em-all Goto Github PK

View Code? Open in Web Editor NEW
69.0 69.0 14.0 1.3 MB

🎬 IMDb: Link 'em all! - Adds all kinds of links to IMDb, customizable!

License: GNU General Public License v2.0

JavaScript 93.22% SugarSS 6.78%
browser chrome firefox greasemonkey greasyfork imdb tampermonkey userscript

imdb-link-em-all's People

Contributors

1024mb avatar aaaxx avatar ahbanavi avatar alexolog avatar alpe12 avatar amaranth24 avatar buzz avatar longpiggy avatar oilervoss avatar strappazzon avatar theo47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

imdb-link-em-all's Issues

Features request: Mobile version

I know it's probably not in scope of this extension. But could you or somebody make a mobile version of this? Something like a Cydia tweak for iOS or a modded IMDB app for Android.

Support site APIs

A lot of sites nowadays render results dynamically e.g. using APIs they call from the client.

That makes it impossible to just fetch the results page and parse it. On the other hand these sites often have API endpoints that can be fetched and evaluated.

Task: Extend the script so it can fetch from API endpoints.

addic7ed Fix

They recently updated their search page url.
search.php -> srch.php

Old:
http://www.addic7ed.com/search.php?search={{IMDB_TITLE}}&Submit=Search

New:
http://www.addic7ed.com/srch.php?search={{IMDB_TITLE}}&Submit=Search

Update TorrentLeech

Hello. Could you update TorrentLeech? It's possible to search with ID instead of title. Also updated the categories.

  {
    "id": "torrentleech",
    "title": "TorrentLeech",
    "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAYFBMVEUAAQAWGBUgIiAuMC0gOwI/QD4rUwVHSEZPUE5WWFU9bwNdX11EggRzdXJ9f3yIioeRk5BlvgSdn5ynqaZ12Qy0trOO4DrCxMHMzsul5ly164Dc39vF75rn6ebz9vL9//x/BKLsAAAAnUlEQVQY013O6w6DMAgF4KOuVqe9aFdvXeH933J0RrOMH4fkCwTAf4USQVsJZ5T5QvSOKmb7PhZkEnBMpZljn7BmcLAF4Id9GREEOiJKYa318npiTuCGKLveoLnAVLQNQF9fwHUBQ/dE2bGIrH4hgri7oSJa5axapvYEbHH2EdU0Pk7oYbSSO2MrII9R0pBqVIkowHkLzroQg/cx0QfQvhJWgfnK2QAAAABJRU5ErkJggg==",
    "url": "https://www.torrentleech.org/torrents/browse/index/imdbID/tt{{IMDB_ID}}/categories/8,9,11,37,43,14,12,13,47,15,29,26,32,27,34,35,36,44",
    "noResultsMatcher": "Please refine your search",
    "noAccessMatcher": "Login :: TorrentLeech.org",
    "category": "priv_tracker"
  },

Not working anymore

I'm using this script under Brave with TM 4.13 and since today it just stopped working. I tried re-toggling the script, manually update it and it didn't help.

Sites aren't saving

Hey I just tried adding other sites and after refresh imdb the sites that I added are gone. They never stick
How do I troubleshoot this?

thanks

Extract CSS

The current bunch of concatenated strings makes the CSS pretty painful to edit. And looking at the formatted code, adding another hundred lines of code in a template literal to the already long script doesn't seem that great either.

Could you extract it to a separate file?

Detect IMDb type: TV show/movie/video game

Some sites only make sense for specific types of entries (e.g. GraphTv is only for TV shows).

Add code that detects the type and add a new optional field to sites that limits it to specific type. Something like this:

graphtvmatsf: [
  'GraphTv',
  'data:image/png;base64,...',
  'https://graph.matsf.cloud/tt{{IMDB_ID}}',
  null,
  null,
  ['tv-show']
],

Edit: For video games we could disable the userscript altogether, I suppose.

Broken Title and Year with TV Series

Hello. IMDB processing TV Series titles differently. This causing the script to not dedect title and year correctly.

Movie: https://www.imdb.com/title/tt0117802

<title>Swingers (1996) - IMDb</title>

IMDB_TITLE=Swingers
IMDB_YEAR=1996

TV Series: https://www.imdb.com/title/tt6741278

<title>Invincible (TV Series 2021– ) - IMDb</title>

IMDB_TITLE=Invincible (TV Series 2021– ) - IMDb
IMDB_YEAR=undefined

A simple split method fixing the title but the year remains broken.
Line 449
}, encode = true) => str.replace(new RegExp('{{IMDB_TITLE}}', 'g'), encode ? encodeURIComponent(title) : title.split(" (TV Series",1)).replace(new RegExp('{{IMDB_ID}}', 'g'), id).replace(new RegExp('{{IMDB_YEAR}}', 'g'), year);

Is it possible to fix it completely?

Abaility to change sites

RARBG is dead (RARBG's .best mirror is a great alternative), YIFY got taken down like a decade ago and the sites continuing in their name are fake, potentially malicious and most likely honey pots and torrent indexers like IDope and BitSearch/SolidTorrents would be nice to have as well.

Script fails to run in Violentmonkey

As per Something is wrong with the latest update 2.0.2 the script stopped working - GreasyFork I am experirencing the same error:

Browser: Firefox 80.0
OS: Win10 2004 latest patch
Userscript extension: ViolentMonkey 2.12.7
Userscript version: 2.0.4
Open the developer console of your browser. Copy and paste any error messages you spot there.

Uncaught TypeError: 'cancelAnimationFrame' called on an object that does not implement interface Window.
    u moz-extension://beb47c15-98e0-4f42-972b-d192b8bf4042/IMDb: Link 'em all!.user.js#176:136
line 1 > injectedScript:136:1317
    u moz-extension://beb47c15-98e0-4f42-972b-d192b8bf4042/IMDb: Link 'em all!.user.js#176:136

List of sites that could be added

Add Zamunda

Hello. Could you add Zamunda?

	{
		"id": "zamunda",
		"title": "Zamunda",
    "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACyklEQVR42k1UXU8TQRTd/4eGYMFI9Mk3E6I++GBMjPqi8cEXNcHSiNIWJBjQECJCbAgK5UM+LVALtAu0hZay22/b7tyd451pQSc5DzP33nPOnZ27hmwt15VSCCFPcgW5GjuRy3uWXNnPy9V4Xv4yLRk/zstytSZd4kRXXizD5UoiguMIxNM2oodn2E9ZSFl1WBXCWdnBsV1DIlNCLGkjmS2AhcB1cKULo+64slZv4Gc0ia1kCY5wOCigSJM2IWEJ1BzSexXbMIv4bWZY0NEkRrVWl0o1mq42WRkqeS5BuDFM6AwI9IaJSViVz9k1IodFdmlznoARSeTkQsxGpSbAbiA4qc6KL3+oYlfj5gjhwFIEyrZkJwLrCRuFcg3Gx4UT+S1awWmJYJcJRd03q38gdA1KDU+AsJki7t3VaDQIS7t5mGkLxquQLb/HBfZPuec8Ic2Y2W2qnxN0BiTmTSavEkp/SOcumgLTqykYd0aLcmKbsJYk7BwT4hx8GvpH0Bl0ccXvYvmQcFwQ2M0SNtIuVo5c+GeZoPt9Xj6fIXzdIQyvs7UDwqMp0rab6oSHvJ9nlxspRprFuJ3xLb6nyQMYPYNJeS3g4AWTPGPlx9OE13OkbZ8TKHQFBT5FSDvxLREefCH0TcVh9E3uyg6fja5A8+bvc8Ab/s8Bt6DBe98CxycI14cI3QNlhFZNGGvRI9kTTMHjFzrp1hhxz9RSdpmoCX0nQSZuxW4PpWGmTmEUikU5MhtDm7ekgx6/qwmUAw3/eVHLCZNc9pUwyjXVagWGGqBcLoe344u41FeGZ0BcPKCLzxhs7pXLNm8Rb8YWoWrUTBhqCuuNOjLZLD7PbuPekImr/Rba3znaSccAob2/jm7fCe4G4hgJRZDJZPkxNZqzoEZSvX11kLd5GvcSmApvoXd8A0+GGMMReMfXMR3exE4sDsuy4bSK+R+Av2zpb/iEe4yjAAAAAElFTkSuQmCC",
		"url": "https://zamunda.net/bananas?search={{IMDB_TITLE}}",
		"noResultsMatcher": "Sorry, nothing found",
		"noAccessMatcher": "Not logged in!",
		"category": "priv_tracker"
	}

Please add DDL-Warez.to

Hi,

could you please add DDL-Warez.to? Its the biggest & most famous german Website for downloading movies/series. I think it would fit very good for your script since the website has 4 million visits a month. I created the code for you ;-):

"id": "ddlwarez",
"title": "DDL-Warez",
"icon": "data:image/png;base64,AAABAAEAEBAAAAAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAA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4br/6+O4/+7mwP/t5bz/6+S8/+nkw//k3r7/////Af///wH///8B////AYuGcnWJg2nxm5V2/7Suj//IwqT/086v/9nUtf/d17j/3de5/9rVtv/Uzq7/ycKi/////wH///8B////Af///wH///8BnpqMPZKNeq+PiW7xmJFz/6eggf+zrI3/ubGT/7ixkv+zrI3/qaGB/52Vd/////8B////Af///wH///8B////Af///wGopZsHkY58PZiTg4OQinW3jIZr2YuDaO2Ohmzpk4t0z5uYhaeinpBrAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//w==',
"url": "https://ddl-warez.to/?search=tt{{IMDB_ID}}",
"noResultsMatcher": "Keine Ergebnisse",
"category": "movie_site"

not sure with the icon URL, maybe an shorter version is possible.

Regards
Eric

Wikipedia links to wrong article

If there are several movies with a same name , the Wikipedia link would not match the correct title. Or if a movie is based on a book, sometimes it links to the book article.
I tried it with I, Robot (2004) , and the Wikipedia link takes me to the book.

Language choice for OS

Hello!

Is there a possibility to select a multiple language of search results in OpenSubtitles? The default search is ENG but it would be very helpful if this extension could add multiple languages to one search, or multiple OepenSubtitles buttons to each selected language separatly?

Keep up good work!

Skipping NO_RESULTS_MATCHER

Since some trackers load results dynamically, so a simple string matching doesn't work, but all login pages are most likely pretty straightforward, is it possible to somehow skip the NO_RESULTS_MATCHER and still have the NOT_LOGGED_IN_MATCHER?

I tried to use null instead, but that just gives me a perpetual loading icon.

My Duck Is Dead search broken

Must remove 'www' from search address string, else MDiD internal redirect returns consistent wrong result "http://myduckisdead.org/search-and-destroy-1979-william-fruet/?q=tt3018474" for some reason, and the new 'noResultsMatcher' is different.

259 "url": "http://www.myduckisdead.org/search?q=tt{{IMDB_ID}}",
to
259 "url": "http://myduckisdead.org/search?q=tt{{IMDB_ID}}",

And,

260 "noResultsMatcher": "No posts matching the query",
to
260 "noResultsMatcher": "Couldn't find what you're looking for!",

Override sites.json in user configuration

With the v2.0 I am unable to edit the code to change website urls to their alternatives (mostly because main websites are blocked) Is there a way to override urls with user defined custom ones?

Search by IMDB

On sites that allow it is it possible to search by IMDB. Currently I use thetvdb.com a great deal and by using the IMDB it will pull the request show perfectly.

Not working one more time

One more time, the script is not working. I'm using Firefox 96.0. Windows 10 1803 x64. It's not working with Tampermonkey 4.13.6136 nor with Greasemonkey 4.11. I try uninstalling and reinstalling the script, with uninstalling and reinstalling the extensions, try with a new Firefox profile, the script continues to not work at all.
The errors that I detect are:

With Greasemonkey:
Source map error: Error: URL constructor: hooks.umd.js.map is not a valid URL.
Resource URL: user-script:https%3A//greasyfork.org/en/users/8981-buzz/IMDb%3A%20Link%20%27em%20all%21
Source Map URL: hooks.umd.js.map

With Tampermonkey:
Uncaught Error: LTA: Could not find target container!
And
Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://3ad31524-7c0b-47c9-af8c-dfa6c131655b/userscripts/IMDb%3A%20Link%20'em%20all!.user.js?id=0ef2934f-3bb9-4a55-aec3-b848adba6f45
Source Map URL: hooks.umd.js.map

I also tried with disabled firewall, VPN, changing my IP, still without being able to make the script work.

Maybe IMDB has changed one more time the site layout...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.