Skip to content

Instantly share code, notes, and snippets.

@hugoboos
Created February 14, 2015 12:14
Show Gist options
  • Star 26 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hugoboos/68b830aec8e7cab65055 to your computer and use it in GitHub Desktop.
Save hugoboos/68b830aec8e7cab65055 to your computer and use it in GitHub Desktop.
Remove history from Trakt
// Run in console on the history page (http://trakt.tv/users/<username>/history)
// Will remove all the items, on that page, from the watched history.
$(".posters .grid-item").each(function(){
var $this = $(this);
historyRemove($this, $this.data("history-id"));
})
@Skaronator
Copy link

ty

@LargeTalons
Copy link

Thank you! You are a saint.

Copy link

ghost commented Apr 20, 2017

Works 100%
Thank You!

@hacktek
Copy link

hacktek commented Apr 20, 2020

This does it on a loop every 10s, useful if you have multiple pages:

setInterval(function(){
$(".posters .grid-item").each(function(){
  var $this = $(this);
  historyRemove($this, $this.data("history-id"));
})
},10000);

It can be improved if you add a variable so it breaks once it goes over the amount of pages you actually have but I was too lazy to do that :)

@niicholai
Copy link

Still working in 2023, thank you so much!

@KSPSlice
Copy link

Yes, need to remove quite a few duplicate watches on the same day and this will be a time saver. Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment