This file contains 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
=begin title | |
EXCESSIVELY ANNOTATED WORK IN PROGRESS RUBY CODE FOR EVENTUAL USE IN A HOMEMADE MARKDOWN PARSER | |
=end # title | |
# half-baked WIP for a markdown generator i am fixin' to write | |
# (for personal use, this thing will make orignal markdown.pl look clean :P) | |
class Element | |
# attr_* methods are library helpers, | |
# they create setters & getters which correspond to a @ClassVar of the same name |
This file contains 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
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* Hide disabled page actions: | |
from <https://www.reddit.com/r/firefox/comments/7usqtm/about_extensions_in_address_bar/dtog5qh/> */ | |
#pageActionPanelMainView > .panel-subview-body > toolbarbutton[disabled="true"] { | |
display: none !important; | |
} | |
/* Hide extraneous page action toolbar separators */ | |
#pageAction-panel-builtInSeparator ~ [disabled="true"] ~ toolbarseparator { |
This file contains 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
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>Euphoria</ShortName> | |
<Description>Visit Euphoria Rooms</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="32" height="32" type="image/png">https://euphoria.io/static/favicon.png</Image> | |
<Url type="text/html" method="get" template="https://euphoria.io/room/{searchTerms}/" /> | |
<moz:SearchForm>https://euphoria.io/room/list/</moz:SearchForm> | |
</OpenSearchDescription> |
This file contains 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
/* Lazy?, the JS "Library" is (c) Jeremy Wilhelm, licensed MIT */ | |
window.doc = document | |
window.head = document.head | |
window.body = document.body | |
window.$ = document.querySelector.bind(document) | |
window.$$ = document.querySelectorAll.bind(document) | |
Element.prototype.byId = Element.prototype.getElementById | |
Element.prototype.byClass = Element.prototype.getElementsByClassName |
NewerOlder