This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Campfire Alerts | |
// @description Issues sound alerts for messages addressed to the user | |
// @match https://*.campfirenow.com/room/* | |
// @author João Britto | |
// @grant none | |
// ==/UserScript== | |
function init(chat, Campfire, Class, escapeRegExp) { | |
Campfire.PersonalMessageHandler = Class.create({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
operators = ["+", "-", ""] | |
operations = numbers.size - 1 | |
expressions = operators.repeated_permutation(operations).map do |sequence| | |
numbers.zip(sequence).join | |
end | |
p "Exploring #{expressions.size} possibilities." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#top-bar { | |
height: 40px; | |
} | |
#search { | |
padding: 5px 0; | |
} | |
#logo { | |
margin: -12px 0 0 44px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Expand Participants List | |
// @description Removes scrolling from Campfire's participants list | |
// @match https://*.campfirenow.com/room/* | |
// @author Britto | |
// @grant GM_addStyle | |
// ==/UserScript== | |
GM_addStyle("\ | |
div#Sidebar ul.participant-list { height: auto; } \ |