Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jfred on github.
  • I am jfred (https://keybase.io/jfred) on keybase.
  • I have a public key ASAlpwOrNMkXLLAKQm5iuz3inHOky1x4Vg6M9tgqdC9UpQo

To claim this, I am signing this object:

@jfred
jfred / Flat Pinboard v1
Last active February 16, 2017 12:09 — forked from danklammer/Flat Pinboard v1
A simple userstyle for pinboard.in bookmarking site
/* Theme Name: Flat Pinboard */
/* Theme URL: http://tackk.com/flat-pinboard */
/* Version: v1.0.1 */
/* Created by: Dan Klammer */
/* Broswer: Chrome + Stylish Extension */
/*
20170215 - modified:
- unstick sidebar
- modified 'private' bookmark background
@jfred
jfred / slack-weekend-dnd-bookmarklet.js
Created January 8, 2017 19:36
Dumb bookmarklet function for setting Slack DND until Monday morning
(function() {
var slackToken = 'GET TOKEN FROM https://api.slack.com/docs/oauth-test-tokens';
var targetHr = 9;
var d = new Date();
d.setDate(d.getDate() + (1 + 7 - d.getDay()) % 7);
d.setHours(targetHr); d.setMinutes(0); d.setSeconds(0);
var mins = (d.getTime()-new Date().getTime()) / (1000 * 60);
window.location='https://slack.com/api/dnd.setSnooze?token=' + slackToken + '&num_minutes=' + mins + '&pretty=1';
})()
@jfred
jfred / delete-watched-videos-from-playlist.js
Last active January 26, 2022 03:06 — forked from timothyarmstrong/delete-videos-from-playlist.js
Delete all watched videos in YouTube Playlist
(function() {
var i = window.setInterval(function() {
var watched = document.querySelector('.watched');
var closeButton = watched ? watched.parentNode.parentNode.parentNode.querySelector('.pl-video-edit-remove') : false;
if (closeButton) {
closeButton.click();
} else {
window.clearInterval(i);
}
}, 500);