I hereby claim:
- I am alexgibson on github.
- I am alexgibson (https://keybase.io/alexgibson) on keybase.
- I have a public key whose fingerprint is DCE3 9AA2 AFF1 7233 41F1 0958 23D8 CEFE 2744 0F86
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| @-moz-document domain("irccloud.com"), domain("irccloud.mozilla.com") { | |
| /* Dark Matter Reloaded | |
| * Version 2.3 - 03/02/2015 | |
| * | |
| * Author: @xupisco - xupisco.net */ | |
| /* Square corners, pls */ | |
| * { | |
| border-radius: 0 !important; | |
| border-top-right-radius: 0 !important; |
Based on the Treemap example.
| <script type="text/javascript"> | |
| // See MDN: https://developer.mozilla.org/en-US/docs/DOM/MutationObserver?redirectlocale=en-US&redirectslug=DOM%2FDOM_Mutation_Observers | |
| (function(){ | |
| // select the target node | |
| var target = document.querySelector('body'); | |
| var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; | |
| var i={}; | |
| // create an observer instance | |
| var observer = new MutationObserver(function(mutations) { |
| <snippet> | |
| <content><![CDATA[{{ _('$SELECTION') }}]]></content> | |
| <description>Wrap string for l10n</description> | |
| </snippet> |
| //enable active pseudo styles in mobile webkit. Only required if not already using touch events | |
| function enableActivePseudoStyles() { | |
| document.addEventListener("touchstart", function () {}, false); | |
| } |
| //encodes special characters | |
| function encodeString(str) { | |
| return str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/\//g, '/'); | |
| } | |
| //decodes special characters | |
| function decodeString(str) { | |
| return str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, '\'').replace(///g, '/'); | |
| } |
| //return text content from html | |
| function stripHTML(html) { | |
| var tmp = document.createElement('div'); | |
| tmp.innerHTML = html; | |
| return tmp.textContent || tmp.innerText; | |
| } |
| function getParameterFromUrl(param) { | |
| var name = param.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'), | |
| results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); | |
| if (results === null) { | |
| return null; | |
| } else { | |
| return decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
| } | |
| } |
| var tapArea, moved, startX, startY; | |
| tapArea = document.querySelector('#list'); //the element to delegate | |
| moved = false; //flags if the finger has moved | |
| startX = 0; //starting x coordinate | |
| startY = 0; //starting y coordinate | |
| //touchstart | |
| tapArea.ontouchstart = function(e) { | |