Skip to content

Instantly share code, notes, and snippets.

View jewel-andraia's full-sized avatar
🧜‍♀️
diving back into coding

Jewel Andraia Darger-Sacher jewel-andraia

🧜‍♀️
diving back into coding
View GitHub Profile
// Add new migrations to the end of RESOptionsMigrate.migrations in the form '#.#.#.#': function() { migration code }
var RESOptionsMigrate = [
migrations: [
{
versionNumber: '4.5.0.0',
go: function() {
RESOptionsMigrate.migrators.generic.moveOption('betteReddit', 'searchSubredditByDefault', 'searchHelper', 'searchSubredditByDefault');
RESOptionsMigrate.migrators.generic.moveOption('styleTweaks', 'lightSwitch', 'nightMode', 'nightSwitch');
@jewel-andraia
jewel-andraia / 6528e94 fresh
Created August 8, 2014 17:49
RES migration tests
RESoptions.betteReddit = {"fullCommentsLink":{"type":"boolean","value":true,"description":"add \"full comments\" link to comment replies, etc"},"fullCommentsText":{"type":"text","value":"full comments","description":"text of full comments link"},"commentsLinksNewTabs":{"type":"boolean","value":false,"description":"Open links found in comments in a new tab"},"fixSaveLinks":{"type":"boolean","value":true,"description":"Make \"save\" links change to \"unsave\" links when clicked"},"fixHideLinks":{"type":"boolean","value":true,"description":"Make \"hide\" links change to \"unhide\" links when clicked, and provide a 5 second delay prior to hiding the link"},"searchSubredditByDefault":{"type":"boolean","value":true,"description":"Search the current subreddit by default when using the search box, instead of all of reddit."},"showUnreadCount":{"type":"boolean","value":true,"description":"Show unread message count next to orangered?"},"showUnreadCountInTitle":{"type":"boolean","value":false,"description":"Show unread
@jewel-andraia
jewel-andraia / README.md
Last active May 19, 2016 17:09
unsub from all on /subreddits/mine
  1. Open http://ted.mielczarek.org/code/mozilla/bookmarklet.html in a new window.
  2. Find bookmarklet.js. Find the "Raw" button on the right edge. Right-click the button > open in new window.
  3. For Input > Name, put in "unsubscribe from all subreddits".
  4. For Input's big empty text area, paste in bookmarklet.js
  5. Follow the instructions on the crunchinator page.
  6. Click your new bookmarklet. You'll need to click it again once you're on the subreddits listing page.
@jewel-andraia
jewel-andraia / README.md
Last active August 29, 2015 14:07
RES v4.5.2 CSS workaround

Safari 8 (OSX Yosemite) does not load RES's CSS in RES v4.5.2 and earlier versions of RES. This results in missing RES button images and settings/hover items showing up in weird places or poorly formatted.

Workaround

  1. Install Stylish.
  2. Add a stylesheet in stylish for domain: reddit.com
  3. Click the "raw" button on concatenated.css in this gist
  4. Copy-paste concatenated.css into your stylesheet
@jewel-andraia
jewel-andraia / template this part
Created October 20, 2014 01:43
/r/RESIssues/wiki/automoderator
---
# Chrome version check
type: submission
body: "Browser: Chrome"
body+url: "Browser Version: (25|26|27|28|29|30|31|32|33|34|35|36|37|38)"
modifiers:
body+url: [regex, inverse]
comment: |
Just so you know, RES hasn't been officially vetted for your browser version. [Read about what is supported and what to expect.](http://www.reddit.com/r/Enhancement/wiki/support). If you're using Chrome Canary, for example, you should expect that there will be all sorts of unpredictable bugs.
@jewel-andraia
jewel-andraia / sticky.css
Created November 11, 2014 21:34
css sticky from @allthefoxes
/* Read the fucking stickies yeh?
------------------------------------------------------------- */
.sitetable .thing.stickied {
border: dashed 10px rgb(255, 92, 0) !important;
outline: solid 5px red;
}
.sitetable .thing.stickied .title {
font-size: 45px !important;
}
.sitetable .thing.stickied .title a {
flair-fox {
background: transparent;
background-image: url(%%Foxes%%);
background-repeat: no-repeat;
text-indent:-9999px;
@jewel-andraia
jewel-andraia / 18788.user.js
Last active February 3, 2017 03:01
Metafilter MultiFavorited Multiwidth for Greasemonkey
// ==UserScript==
// @name Metafilter MultiFavorited Multiwidth
// @author andytuba
// @namespace http://www.metafilter.com/user/25038
// @description https://gist.github.com/andytuba/af19e8db8dde937afb1a/edit
// @include http://www.metafilter.com/*
// @include http://*.metafilter.com/*
// ==/UserScript==
setTimeout(go, 200); // cheat instead of learning about Tampermonkey startup and config
@jewel-andraia
jewel-andraia / get.js
Created July 5, 2015 22:00
Export custom RES settings
Object.getOwnPropertyNames(modules)
.filter(function(moduleID) {
var options = (options = modules[moduleID]) && options.options;
if (options && Object.getOwnPropertyNames(options).some(function(key) {
var option = options[key]; return option.length || option.value != option.default;
})) {
return true;
}
})
.forEach(function(moduleID) {
@jewel-andraia
jewel-andraia / comment.md
Last active August 29, 2015 14:26
intensifies

http://i.imgur.com/06nJ23G.gifv