Skip to content

Instantly share code, notes, and snippets.

@fredley
fredley / ignore.user.js
Created May 7, 2014 18:57
Hide chat messages containing certain words
// ==UserScript==
// @name Ignore
// @description Ignore things!
// @version 1.0
// @include http://chat.meta.stackoverflow.com/rooms/*
// @include http://chat.meta.stackexchange.com/rooms/*
// @include http://chat.stackexchange.com/rooms/*
// @include http://chat.stackoverflow.com/rooms/*
// @include http://chat.askubuntu.com/rooms/*
// @run-at document-end
// ==UserScript==
// @name Always Be Closing Dupes Everywhere
// @version 0.1
// @description ABC
// @include http://stackoverflow.com/questions/*
// @include http://stackoverflow.com/review/close/*
// @include http://*.stackexchange.com/questions/*
// @include http://*.stackexchange.com/review/close/*
// @copyright No
// ==/UserScript==
@fredley
fredley / SECommentSaver.user.js
Last active August 29, 2015 14:03
SE Comment Saver - Save Comments on SE
// ==UserScript==
// @name SE Comment Saver
// @description Save SE
// @version 1.0
// @include http://meta.stackoverflow.com/*
// @include http://*.stackexchange.com/*
// @include http://serverfault.com/*
// @include http://stackoverflow.com/*
// @include http://askubuntu.com/*
// @include http://stackapps.com/*
@fredley
fredley / gist:d63b2b9bb195d2b5494a
Last active August 29, 2015 14:10
badges.user.js
// ==UserScript==
// @name Badge Popups
// @description YAY BADGES
// @version 1.0
// @include *//meta.stackexchange.com/users/*
// @run-at document-end
// ==/UserScript==
var init = function($){
if($('.people-helped').length == 0) return;
// ==UserScript==
// @name It's Never Friday
// @description Detects links to Rebecca Black's Friday
// @version 1.0.0
// @include *://chat.meta.stackoverflow.com/rooms/*
// @include *://chat.meta.stackexchange.com/rooms/*
// @include *://chat.stackexchange.com/rooms/*
// @include *://chat.stackoverflow.com/rooms/*
// @include *://chat.askubuntu.com/rooms/*
// @run-at document-end
// ==UserScript==
// @name It's Never Friday
// @description Detects links to Rebecca Black's Friday
// @version 1.0.0
// @include *://chat.meta.stackoverflow.com/rooms/*
// @include *://chat.meta.stackexchange.com/rooms/*
// @include *://chat.stackexchange.com/rooms/*
// @include *://chat.stackoverflow.com/rooms/*
// @include *://chat.askubuntu.com/rooms/*
// @run-at document-end
@fredley
fredley / upload.user.js
Created March 4, 2015 18:56
Drag+Drop image uploader for SE chat
// ==UserScript==
// @name Chat Image Upload
// @description Drag and Drop upload images
// @author fredley
// @version 1.0.0
// @include *://chat.meta.stackoverflow.com/rooms/*
// @include *://chat.meta.stackexchange.com/rooms/*
// @include *://chat.stackexchange.com/rooms/*
// @include *://chat.stackoverflow.com/rooms/*
// @include *://chat.askubuntu.com/rooms/*
@fredley
fredley / topic.user.js
Last active August 29, 2015 14:16
Chat Topic Change Diffs
// ==UserScript==
// @name Room Topic Diff
// @description Whenever the room topic is changed, displays what it was before
// @author fredley
// @version 1.0.0
// @include *://chat.meta.stackoverflow.com/rooms/*
// @include *://chat.meta.stackexchange.com/rooms/*
// @include *://chat.stackexchange.com/rooms/*
// @include *://chat.stackoverflow.com/rooms/*
// @include *://chat.askubuntu.com/rooms/*
@fredley
fredley / Holiday
Created March 13, 2014 10:23
Holiday Pebble App
#include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
PBL_APP_INFO(MY_UUID, "Holiday", "Tom Medley", 1, 1 /* App version */, RESOURCE_ID_IMAGE_MENU_ICON, APP_INFO_WATCH_FACE);
Window window;
TextLayer text_time_layer;
@fredley
fredley / recipes.py
Created May 17, 2016 09:13
BBC recipe archive tool
"""
Save a copy of all BBC recipes as JSON files.
Instructions:
Run this file with Python 3 in an environment with BeautifulSoup4 and requests:
virtualenv -p python3 env
source env/bin/activate
pip install requests beautifulsoup4