Skip to content

Instantly share code, notes, and snippets.

View LenAnderson's full-sized avatar

Len LenAnderson

View GitHub Profile
@LenAnderson
LenAnderson / TweedeckNewTweetHighlighter.css
Created July 3, 2014 11:10
Highlight new Tweets in Tweetdeck
@keyframes tweet-enter {
from { background-color: rgba(88, 0, 108, 1); }
80% { background-color: rgba(88, 0, 108, 1); }
to { background-color: rgba(88, 0, 108, 0); }
}
.js-chirp-container > article {
animation-duration: 2.5s;
animation-name: tweet-enter;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Scramble</title>
<style>
textarea {
height: 300px;
width: 500px;
white-space: pre;
import java.awt.GraphicsEnvironment
import java.awt.Desktop
File.createTempFile("wordmark", ".html").with {
write """<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>wordmark</title>
<style>
import groovy.json.*
def jamos = [
"initial": [
[1,"ᄀ","ㄱ"],
[2,"ᄁ","ㄲ"],
[3,"ᄂ","ㄴ"],
[4,"ᄃ","ㄷ"],
[5,"ᄄ","ㄸ"],
[6,"ᄅ","ㄹ"],
// ==UserScript==
// @name Reddit - Save Upvoted
// @namespace https://github.com/LenAnderson/
// @version 0.1
// @author LenAnderson
// @match https://www.reddit.com/user/*/upvoted/
// @match https://www.reddit.com/user/*/upvoted/*
// @grant none
// ==/UserScript==
@LenAnderson
LenAnderson / YouTube-Annotation-Ripper.user.js
Created November 28, 2018 06:34
YouTube Annotation Ripper (fix for v1.3.2)
// ==UserScript==
// @name YouTube Annotation Ripper
// @namespace http://www.diamonddownload.weebly.com
// @version 1.3.2
// @description Appends the each annotation text to a textbox box below the video for easy copying.
// @include *youtube.*/watch?v=*
// @copyright 2014+, RGSoftware
// @run-at document-body
// @author R.F Geraci
// @grant GM_notification
@LenAnderson
LenAnderson / youtube_reddit_comments.user.js
Created March 12, 2020 11:31
YouTube - Reddit Comments (proof of concept)
// ==UserScript==
// @name YouTube - Reddit Comments
// @namespace https://github.com/LenAnderson/
// @downloadURL https://github.com/LenAnderson/YouTube-Reddit-Comments/raw/master/youtube_reddit_comments.user.js
// @version 0.1
// @author LenAnderson
// @match https://www.youtube.com/watch*
// @grant GM_xmlhttpRequest
// @connect reddit.com
// ==/UserScript==
@LenAnderson
LenAnderson / reddit-search-user-page.user.js
Created February 25, 2021 18:20
Userscript for reddit: Search reddit's user page with regular expressions
// ==UserScript==
// @name Reddit - Search User Page
// @namespace https://github.com/LenAnderson/
// @version 0.1
// @description Search reddit's user page with regular expressions
// @author LenAnderson
// @match https://www.reddit.com/user/*
// @grant none
// ==/UserScript==
(async()=>{
const wait = async(ms)=>new Promise(resolve=>setTimeout(resolve, ms));
let btn = document.querySelector('ytd-playlist-video-renderer button[aria-label="Action menu"]');
while (btn) {
btn.click();
await wait(100);
Array.from(document.querySelectorAll('ytd-menu-service-item-renderer')).filter(it=>it.textContent.trim() == 'Remove from Watch later').forEach(it=>it.click());
btn = document.querySelector('ytd-playlist-video-renderer button[aria-label="Action menu"]');
}
})();