Skip to content

Instantly share code, notes, and snippets.

View watch-youtube-on-duckduckgo.user.js
// ==UserScript==
// @name Watch YouTube on DuckDuckGo
// @namespace https://carletonstuberg.com/
// @version 1.2.1
// @description Automatically watch YouTube on DuckDuckGo
// @author Carleton Stuberg
// @include https://www.youtube.com/watch*
// @include https://youtube.com/watch*
// @include https://www.youtube-nocookie.com/*
// @include https://youtube-nocookie.com/*
View keybase.md

Keybase proof

I hereby claim:

  • I am carletonstuberg on github.
  • I am carleton (https://keybase.io/carleton) on keybase.
  • I have a public key ASA3a0Zx2WLopKtgxtfDB8yqcJqFDdGVUWiV6g1wIH96Lwo

To claim this, I am signing this object:

@CarletonStuberg
CarletonStuberg / better-crunchyroll.user.js
Last active Apr 14, 2018
better-crunchyroll.user.js
View better-crunchyroll.user.js
// ==UserScript==
// @name Better Crunchyroll
// @namespace https://carletonstuberg.com
// @description Hide Crunchyroll thumbnails, descriptions on queue, show oldest videos first
// @version 1.0.0
// @author Carleton Stuberg
// @copyright 2016+, Carleton Stuberg
// @license MIT; http://opensource.org/licenses/MIT
// @include http://www.crunchyroll.com/*
// @run-at document-end
@CarletonStuberg
CarletonStuberg / sync_playlists_to_users.py
Last active Oct 20, 2017 — forked from JonnyWong16/sync_playlists_to_users.py
Sync Plex playlists to shared users.
View sync_playlists_to_users.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests, xmltodict
import requests
import xmltodict
View hide-youtube-comments.user.js
// ==UserScript==
// @name Hide YouTube Comments
// @namespace https://imcpwn.com
// @description Hide the YouTube Comments with no option to re-enable.
// @version 1.0.0
// @author Carleton Stuberg
// @copyright 2016+, Carleton Stuberg
// @license MIT; http://opensource.org/licenses/MIT
// @include http://www.youtube.com/watch*
// @include https://www.youtube.com/watch*
@CarletonStuberg
CarletonStuberg / hide-crunchyroll-thumbnails.user.js
Last active Aug 6, 2017
Userscript to hide the Crunchyroll Thumbnails at the bottom of the player which may contain spoilers.
View hide-crunchyroll-thumbnails.user.js
// ==UserScript==
// @name Hide Crunchyroll Thumbnails
// @namespace https://imcpwn.com
// @description Hide the Crunchyroll Thumbnails at the bottom of the player which may contain spoilers.
// @version 1.0.0
// @author Carleton Stuberg
// @copyright 2016+, Carleton Stuberg
// @license MIT; http://opensource.org/licenses/MIT
// @include http://www.crunchyroll.com/*
// @run-at document-end
@CarletonStuberg
CarletonStuberg / delete-all-messages.js
Last active Dec 1, 2020 — forked from niahoo/delete-all-messages.js
Delete all messages in a Discord channel
View delete-all-messages.js
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom)
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right.
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID.
// Copy / paste the below script into the JavaScript console.
// If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages).
var before = 'LAST_MESSAGE_ID';
clearMessages = function(){
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, "");
const channel = window.location.href.split('/').pop();