Skip to content

Instantly share code, notes, and snippets.

View dauger's full-sized avatar

Daniel Auger dauger

View GitHub Profile
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active April 21, 2025 07:10
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
using Autofac;
using Autofac.Core;
using Cloudinator.Portal.WebApi.Infrastructure;
using Cloudinator.Portal.WebApi.Infrastructure.Handlers;
using FluentValidation;
using MediatR;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
@mjallday
mjallday / README.mkd
Created October 8, 2013 21:21
HANGMAN

Make a client

curl http://balanced-hangman.herokuapp.com

Hopefully you'll see something like

{
 "index": "/", 
 "me": "/me", 
@glennblock
glennblock / ApiControllerExtensions.cs
Last active December 14, 2015 10:39
So you don't hate yourself when you try to test a controller.
public static void ConfigureForTesting(this ApiController controller, HttpRequestMessage request, string routeName = null, HttpRoute route = null)
{
var config = new HttpConfiguration();
controller.Configuration = config;
if (routeName != null && route !=null)
config.Routes.Add(routeName, route);
else
route = config.Routes.MapHttpRoute("DefaultApi", "{controller}/{id}", new { id = RouteParameter.Optional });
var controllerTypeName = controller.GetType().Name;