Skip to content

Instantly share code, notes, and snippets.

@IMcPwn
IMcPwn / watch-youtube-on-duckduckgo.user.js
Last active May 26, 2020 16:26
Watch YouTube on DuckDuckGo
// ==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/*

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:

@IMcPwn
IMcPwn / better-crunchyroll.user.js
Last active April 14, 2018 19:05
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
@IMcPwn
IMcPwn / sync_playlists_to_users.py
Last active October 20, 2017 16:48 — forked from JonnyWong16/sync_playlists_to_users.py
Sync Plex playlists to shared users.
#!/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
// ==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*
@IMcPwn
IMcPwn / hide-crunchyroll-thumbnails.user.js
Last active August 6, 2017 20:02
Userscript to hide the Crunchyroll Thumbnails at the bottom of the player which may contain spoilers.
// ==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
@IMcPwn
IMcPwn / delete-all-messages.js
Last active July 12, 2023 19:41 — forked from niahoo/delete-all-messages.js
Delete all messages in a Discord channel
// 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();