Skip to content

Instantly share code, notes, and snippets.

@-moz-document url("https://tweetdeck.twitter.com/") {
html.dark{color:#e1e8ed}
html.dark .is-inverted-dark .stream-item{background-color:#fff}
html.dark body{background-color:#1c6399}
html.dark body:before{background-image:radial-gradient(circle,#1c6399,#274256)}
html.dark::selection{background:#e1e8ed;color:#111}
html.dark a{color:#8bd}
html.dark a:hover,html.dark a:focus,html.dark a:active{color:#8bd}
html.dark .txt-mute{color:#8899a6}
const getSelector = el => {
let sel = [];
let currEl = el;
while (!!currEl) {
sel = [`${currEl.tagName.toLowerCase()}.${currEl.className.trim().replace(/\s+/g, '.')}`, ;
currEl = currEl.parentElement;
}
@eramdam
eramdam / index.js
Created August 12, 2018 20:02
A small script to unfollow non-mutuals on Mastodon (useful if you need to do some cleaning)
const Masto = require('mastodon');
const fs = require('fs')
const M = new Masto({
access_token: 'ACCESS_TOKEN',
api_url: 'https://YOUR-INSTANCE.TLD/api/v1/'
});
function getNextPage(req) {
return (req.headers && req.headers.link && req.headers.link.includes('rel="next"')) ? req.headers.link.split(/<([^>]+)>/)[1] : null;
@eramdam
eramdam / old-font.css
Created August 28, 2018 17:32
Old-ass font TweetDeck userstyle
html, html .system-font-stack {
font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif;
}
@eramdam
eramdam / mastodon-scrollbars-firefox.css
Last active January 1, 2019 04:34
Add styled scrollbars to Firefox 64+ on Mastodon (if for some reason your instance isn't on mainline Mastodon)
html,
.scrollable {
/* Replace the color by the color of column headers for a better effect. */
scrollbar-color: #313543 transparent;
/* This is optional but I find the default scrollbars way too fat. */
scrollbar-width: thin;
}
@eramdam
eramdam / babel.config.js
Last active May 1, 2020 01:30
instance-of-window-aware
module.exports = {
overrides: [
{
include: [/react-pose/, /stylefire/],
plugins: ['./plugin-transform.js']
}
]
}
@eramdam
eramdam / dark-theme.png
Last active April 1, 2019 09:45
Bottom tabs (Firefox Quantum)
dark-theme.png
/* ==UserStyle==
@name Crunchyroll large/responsive video player - 1/25/2020, 4:32:28 PM
@namespace github.com/eramdam
@version 1.0.0
@description What the title says
@author Damien Erambert (Eramdam)
==/UserStyle== */
@-moz-document regexp("https://www.crunchyroll.com/[a-z-]+/episode-[a-z-0-9]+") {
#template_container {
// ==UserScript==
// @name Screenshot Plex
// @namespace Violentmonkey Scripts
// @match *://192.168.86.250:32400/*/*
// @match *://app.plex.tv/*
// @grant none
// @version 1.0
// @author @Eramdam
// @description 5/3/2020, 1:03:26 PM
// @require https://unpkg.com/file-saver@2.0.2/dist/FileSaver.min.js