Skip to content

Instantly share code, notes, and snippets.

@paularmstrong
Last active December 10, 2015 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paularmstrong/4421903 to your computer and use it in GitHub Desktop.
Save paularmstrong/4421903 to your computer and use it in GitHub Desktop.
if (document.hasOwnProperty('createTouch')) {
try {
var ignore = /:hover/;
Array.prototype.slice.call(document.styleSheets).forEach(function (sheet) {
Array.prototype.slice.call(sheet.cssRules).forEach(function (rule) {
if (rule.type === CSSRule.STYLE_RULE && ignore.test(rule.selectorText)) {
sheet.deleteRule(j);
}
});
});
}
catch (e) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment