Skip to content

Instantly share code, notes, and snippets.

@eramdam
eramdam / dark-theme.png
Last active Apr 1, 2019
Bottom tabs (Firefox Quantum)
@eramdam
eramdam / babel.config.js
Last active Mar 8, 2019
instance-of-window-aware
View babel.config.js
module.exports = {
overrides: [
{
include: [/react-pose/, /stylefire/],
plugins: ['./plugin-transform.js']
}
]
}
@eramdam
eramdam / mastodon-scrollbars-firefox.css
Last active Jan 1, 2019
Add styled scrollbars to Firefox 64+ on Mastodon (if for some reason your instance isn't on mainline Mastodon)
View mastodon-scrollbars-firefox.css
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 / old-font.css
Created Aug 28, 2018
Old-ass font TweetDeck userstyle
View old-font.css
html, html .system-font-stack {
font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif;
}
@eramdam
eramdam / index.js
Created Aug 12, 2018
A small script to unfollow non-mutuals on Mastodon (useful if you need to do some cleaning)
View index.js
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;
View getSelector.js
const getSelector = el => {
let sel = [];
let currEl = el;
while (!!currEl) {
sel = [`${currEl.tagName.toLowerCase()}.${currEl.className.trim().replace(/\s+/g, '.')}`, ;
currEl = currEl.parentElement;
}
View old-tweetdeck-dark.css
@-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}
@eramdam
eramdam / background-color-iterm2.jpg
Last active Aug 20, 2018
Get A Nice iTerm2/zsh Config With These Easy Tricks! (random emoji goodness)
@eramdam
eramdam / README.md
Last active Dec 30, 2016
Scrambled Eggs: hide "eggs" accounts from notifications
View README.md

Disclaimer

This is just a proof of concept, nowhere complete. I will probably implement this as its own Chrome extension and/or add it to Better TweetDeck.

What's this?

It's a simple userscript that simply hides tweets, likes and retweets from "eggs" accounts on Twitter Web in your Notifications page. That's it. Install it and enjoy.

As said in the disclaimer, it's just a proof of concept. If proven actually useful/efficient it could be turned into a browser extension but will most likely be integrated into Better TweetDeck first.

Twitter ~ GitHub

View index.js
command: (callback) => {
const apple = require('./lib/applescript.js');
console.log(apple);
callback(null, 'apple');
},
render: () => `
<div id="player">
<header>
<span class="title"></span>
You can’t perform that action at this time.