Skip to content

Instantly share code, notes, and snippets.

@hugoboos
hugoboos / trakt-add-history.js
Last active Aug 29, 2015
Add to Trakt history
View trakt-add-history.js
// 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.
@hugoboos
hugoboos / segmentation-fault.php
Last active Aug 29, 2015
Segmentation fault with Xdebug
View segmentation-fault.php
<?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-remove-history.js
Created Feb 14, 2015
Remove history from Trakt
View trakt-remove-history.js
// 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"));
})