Skip to content

Instantly share code, notes, and snippets.

View adam-p's full-sized avatar

Adam Pritchard adam-p

View GitHub Profile
@adam-p
adam-p / Firefox-notification-on-all-tabs.js
Last active December 22, 2015 09:18
Code to show the native Firefox per-tab notification on all tabs, and have the notification be cleared from all tabs when the user takes action on one of them. (If you have the Firefox "Browser Console" enabled, you can paste this code directly into it. (Tested in Aurora 25.))
// This function is from https://github.com/adam-p/markdown-here/blob/3fca89d704d431dc55e78c68b1afae762794c7e7/src/firefox/chrome/content/ff-overlay.js#L382
/*
* doFunction will be passed a [browser](https://developer.mozilla.org/en-US/docs/XUL/browser)
* (which is approximately analogous to a tab)
* and a [tabbrowser](https://developer.mozilla.org/en-US/docs/XUL/tabbrowser)
* (which is approximately analogous to the window containing the tab)
* for each open tab. browser.contentDocument can be used to access the page's
* document object.
*/
function forAllTabsDo(doFunction) {
@adam-p
adam-p / Flat Adverbs List.md
Last active December 17, 2015 01:00
Flat Adverbs List: Not having been able to find a comprehensive list of flat adverbs, I decided to build my own
@adam-p
adam-p / Tor-testssl.sh.md
Last active August 29, 2015 14:23
./testssl.sh --mx torproject.org

Output of ./testssl.sh --mx torproject.org, in text format and HTML format.

Output of checktls.com sender test.

2015-06-19