Skip to content

Instantly share code, notes, and snippets.

@hugoboos
hugoboos / trakt-remove-history.js
Created February 14, 2015 12:14
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"));
})
@hugoboos
hugoboos / segmentation-fault.php
Last active August 29, 2015 14:16
Segmentation fault with Xdebug
<?php
# src/app.php
require_once __DIR__ . "/../vendor/autoload.php";
$app = new Silex\Application();
$app->register(new \Silex\Provider\MonologServiceProvider());
$app['monolog'] = $app->share($app->extend("monolog", function($monolog, $app) {
// Code
@hugoboos
hugoboos / trakt-add-history.js
Last active May 18, 2023 23:49
Add to Trakt history
// Run in console on the season overview page (http://trakt.tv/shows/<show>/seasons/<season-number>)
// Will set all the episodes of that season to watched, on the specified date.
// Format the date as: 'Jan 26, 2014 7:06 PM'.
$("#episodes-wrapper").find(".grid-item").each(function(){
actionWatch($(this), "watch", false, "<date>")
})
// Run in console on the episode page (http://trakt.tv/shows/<show>/seasons/<season-number>/episodes/<episode-number>)
// Will set the episode to watched, on the specified date.