Skip to content

Instantly share code, notes, and snippets.

View AlexanderOMara's full-sized avatar
🇺🇦

Alexander O'Mara AlexanderOMara

🇺🇦
View GitHub Profile
@AlexanderOMara
AlexanderOMara / inverticon-patch.js
Created November 9, 2015 07:54
Firefox invertIconForLightTheme Addon-SDK polyfill.
/**
* Polyfill for invertIconForLightTheme option missing in Firefox < 43 Add-on SDK.
*
* @copyright Alexander O'Mara
* @license MPL-2.0
*
* Conditionally load this polyfill with the following version detection:
*
* const system = require('sdk/system');
* if (parseInt(system.platformVersion) < 43) {
@AlexanderOMara
AlexanderOMara / index.html
Last active November 9, 2015 07:51
WebKit Wheel Event Remove Window Crash
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>WebKit Wheel Event Remove Window Crash</title>
</head>
<body>
<script type="text/javascript">
/*<!--*/
(function(window) {'use strict';
@AlexanderOMara
AlexanderOMara / index.html
Last active February 19, 2019 22:30
iOS 8 position: fixed; input element workaround
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<title>iOS 8 position: fixed; input element workaround</title>
<style>
* {
margin: 0;
padding: 0;