You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ An extensive userscript collection for trakt.tv. Please report any bugs you enco
11
11
## Userscripts
12
12
|*NAME*|*VERSION*|*LOC*|*INSTALL*|
13
13
|:---|:---|:---|:---|
14
-
|[Trakt.tv \| Megascript](userscripts/docs/zzzzzzzz.md#StickyHeader"My 15 trakt.tv userscripts merged into one for convenience. Namely: Actor Pronunciation Helper, All-In-One Lists View, Average Season And Episode Ratings, Bug Fixes And Optimizations, Charts - Ratings Distribution, Charts - Seasons, Custom Links (Watch-Now + External), Custom Profile Header Image, Enhanced List Preview Posters, Enhanced Title Metadata, Nested Header Navigation Menus, Partial VIP Unlock, Playback Progress Manager, Scheduled E-Mail Data Exports, Trakt API Wrapper.")|`2026-02-01_02-41`|`4751`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/zzzzzzzz.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/zzzzzzzz.min.user.js)|
14
+
|[Trakt.tv \| Megascript](userscripts/docs/zzzzzzzz.md#StickyHeader"My 15 trakt.tv userscripts merged into one for convenience: Actor Pronunciation Helper, All-In-One Lists View, Average Season And Episode Ratings, Bug Fixes And Optimizations, Charts - Ratings Distribution, Charts - Seasons, Custom Links (Watch-Now + External), Custom Profile Header Image, Enhanced List Preview Posters, Enhanced Title Metadata, Nested Header Navigation Menus, Partial VIP Unlock, Playback Progress Manager, Scheduled E-Mail Data Exports, Trakt API Wrapper.")|`2026-02-01_07-46`|`4751`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/zzzzzzzz.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/zzzzzzzz.min.user.js)|
15
15
|[Trakt.tv \| Actor Pronunciation Helper](userscripts/docs/71cd9s61.md#StickyHeader"Adds a button on /people pages for fetching an audio recording of that person's name with the correct pronunciation from https://forvo.com")|`1.0.6`|`131`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/71cd9s61.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/71cd9s61.min.user.js)|
16
16
|[Trakt.tv \| All-In-One Lists View](userscripts/docs/p2o98x5r.md#StickyHeader"Adds a button for appending your lists from the /collaborations, /liked and /liked/official pages on the main \"Personal Lists\" page for easier access and management of all your lists in one place. Essentially an alternative to the lists category dropdown menu.")|`1.0.10`|`110`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/p2o98x5r.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/p2o98x5r.min.user.js)|
17
17
|[Trakt.tv \| Average Season And Episode Ratings](userscripts/docs/yl9xlca7.md#StickyHeader"Shows the average general and personal rating of the seasons of a show and the episodes of a season. You can see the averages for all episodes of a show on its /seasons/all page.")|`1.0.4`|`94`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/yl9xlca7.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/yl9xlca7.min.user.js)|
@@ -24,9 +24,9 @@ An extensive userscript collection for trakt.tv. Please report any bugs you enco
24
24
|[Trakt.tv \| Enhanced Title Metadata](userscripts/docs/fyk2l3vj.md#StickyHeader"Adds links of filtered search results to the metadata section (languages, genres, networks, studios, writers, certification, year) on title summary pages, similar to the vip feature. Also adds a country flag and allows for \"combined\" searches by clicking on the labels.")|`1.0.5`|`321`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/fyk2l3vj.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/fyk2l3vj.min.user.js)|
25
25
|[Trakt.tv \| Nested Header Navigation Menus](userscripts/docs/txw82860.md#StickyHeader"Adds 150+ dropdown menus with a total of 1000+ entries to the header navigation bar for one-click access to just about any page on the entire website.")|`1.1.1`|`740`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/txw82860.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/txw82860.min.user.js)|
26
26
|[Trakt.tv \| Partial VIP Unlock](userscripts/docs/x70tru7b.md#StickyHeader"Unlocks some vip features: adding titles to maxed-out lists, advanced filters, \"more\" buttons on dashboard, faster page navigation, bulk list management, rewatching, custom calendars, advanced list progress and more. Also hides some vip advertisements.")|`2.0.5`|`257`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/x70tru7b.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/x70tru7b.min.user.js)|
27
-
|[Trakt.tv \| Playback Progress Manager](userscripts/docs/swtn5c9q.md#StickyHeader"Adds playback progress badges to in-progress movies/episodes and allows for setting and removing playback progress states. Also adds playback progress overview pages to the \"Progress\" tab and allows for bulk deletion and renewal. DOES NOT WORK WITHOUT THE \"TRAKT API WRAPPER\" USERSCRIPT!")|`1.0.0`|`392`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/swtn5c9q.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/swtn5c9q.min.user.js)|
27
+
|[Trakt.tv \| Playback Progress Manager](userscripts/docs/swtn5c9q.md#StickyHeader"Adds playback progress badges to in-progress movies/episodes and allows for setting and removing playback progress states. Also adds playback progress overview pages to the \"Progress\" tab and allows for bulk deletion and renewal. DOES NOT WORK WITHOUT THE \"TRAKT API WRAPPER\" USERSCRIPT!")|`1.0.1`|`392`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/swtn5c9q.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/swtn5c9q.min.user.js)|
28
28
|[Trakt.tv \| Scheduled E-Mail Data Exports](userscripts/docs/2hc6zfyy.md#StickyHeader"Automatic trakt.tv backups for free users. On every trakt.tv visit a background e-mail data export is triggered, if one is overdue based on the specified cron expression (defaults to weekly).")|`1.1.5`|`58`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/2hc6zfyy.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/2hc6zfyy.min.user.js)|
29
-
|[Trakt.tv \| Trakt API Wrapper](userscripts/docs/f785bub0.md#StickyHeader"Exposes an authenticated Trakt API Wrapper. Intended to run alongside other userscripts which require (authenticated) access to the Trakt API.")|`1.0.0`|`553`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/f785bub0.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/f785bub0.min.user.js)|
29
+
|[Trakt.tv \| Trakt API Wrapper](userscripts/docs/f785bub0.md#StickyHeader"Exposes an authenticated Trakt API Wrapper. Intended to run alongside other userscripts which require (authenticated) access to the Trakt API.")|`1.0.1`|`553`|[Standard](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/f785bub0.user.js) // [Minified](https://raw.githubusercontent.com/Fenn3c401/Trakt.tv-Userscript-Collection/main/userscripts/dist/f785bub0.min.user.js)|
30
30
31
31
## Requirements
32
32
-[Tampermonkey](https://www.tampermonkey.net) as userscript manager. Use the beta version if you can. Violentmonkey is not supported (YMMV).
Copy file name to clipboardExpand all lines: userscripts/dist/f785bub0.user.js
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
// ==UserScript==
2
2
// @name Trakt.tv | Trakt API Wrapper
3
3
// @description Exposes an authenticated Trakt API Wrapper. Intended to run alongside other userscripts which require (authenticated) access to the Trakt API. See README for details.
There are two types of props you can pass to a method, parameters corresponding to those listed in the Trakt API docs and options (denoted by a leading `_`) for the wrapper itself.
42
42
- ***Parameters***<br>
43
43
There are three categories: path parameters, search parameters, and the props for the request's body. First the mandatory and optional parameters for the path
@@ -50,13 +50,15 @@
50
50
- `_meta` - Whether to wrap the response's data in an object with the supplied trakt header metadata like: `{ data: returned_data, meta: { pagination_page: 3 }}`.
51
51
`meta` includes all the trakt `x-`-prefixed headers and a couple select others in a normalized form to allow for dot-syntax access. Type coercion is done for numbers and booleans.
52
52
It's also included as `parsedTraktHeaders` with the raw response object which get's thrown in case of a failed request.
53
-
- `_revalidate` - Whether to revalidate the data instead of directly pulling it from the disk cache. Defaults to `false`.
53
+
- `_revalidate` - Whether to revalidate the data instead of directly pulling it from the disk cache when possible.
54
54
- `_retry` - Configuration for a basic exponential backoff based retry mechanism. By default only activated for authed `POST`/`PUT`/`DELETE` requests.
55
55
Doesn't use the `ratelimit` and `retry_after` trakt headers. Takes a config object like `{ limit: 5, req_delay: 1000, resp_delay: 0 }`, with each retry
56
56
`limit` gets decremented (= 5 retries) and `req_delay` doubled. If you want to turn it off you can just override it with `_retry: null`.
57
57
- In the userscript storage tab you can change the `apiUrl` to `https://api-staging.trakt.tv` for a sandbox environment
58
58
and you can activate console logging of all api requests with `logApiRequests`.
- There's built-in rate-limiting for authed `POST`/`PUT`/`DELETE` requests (1/sec), which is complemented by the default `_retry` config, so you can just make a bunch of these
60
+
requests at once and they'll be queued up and executed one by one in the same order in which you made them. This is complemented by the default `_retry` config where in this case
61
+
a retried request delays all other queued requests.
0 commit comments