Skip to content

Instantly share code, notes, and snippets.

@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 / 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 ChatSEy
// @description Nicer Mobile Chat
// @version 1.0
// @include http://chat.meta.stackoverflow.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==
// ==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;
var decode = function(save){
return LZString.decompressFromBase64(save.split("|")[1].substring(16));
}
var encode = function(json){
return btoa("1.0.19") + "|" + btoa("SAVE HAX0R3D") + LZString.compressToBase64(json);
}
// ==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/*