Last active
November 3, 2025 11:15
-
-
Save Tetrax-10/7eff1f8c81cbb64adb9d7e7d27ee0258 to your computer and use it in GitHub Desktop.
Open the DevTools Console on your watchlist page and run this code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.querySelectorAll(`.details .title a[href^="/movie"], .details .title a[href^="/tv"]`).forEach(async (titleElement) => { | |
| const titleType = titleElement.href.split("/")[3] | |
| const titleId = titleElement.href.split("/")[4] | |
| const rawres = await fetch(`https://www.themoviedb.org/${titleType}/${titleId}/toggle-list-item?translate=false`, { | |
| method: "PUT", | |
| headers: { | |
| "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", | |
| }, | |
| body: "type=watchlist", | |
| }) | |
| const res = await rawres.json() | |
| console.log(res.message) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment