I hereby claim:
- I am revolter on github.
- I am revolt (https://keybase.io/revolt) on keybase.
- I have a public key whose fingerprint is 52D0 8545 D5F1 48F8 D0DB B246 427C 28D8 21CE B881
To claim this, I am signing this object:
protocol RegularExpressionMatchable { | |
func match(regex: NSRegularExpression) -> Bool | |
} | |
extension String: RegularExpressionMatchable { | |
func match(regex: NSRegularExpression) -> Bool { | |
let range = NSMakeRange(0, self.count) | |
let matches = regex.numberOfMatches(in: self, range: range) | |
return matches > 0 |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Copyright (C) 2015-2017 Carlos Jenkins <carlos@jenkins.co.cr> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
// ==UserScript== | |
// @name YouTube Enhancer | |
// @namespace http://iulianonofrei.com | |
// @version 1.11 | |
// @author Iulian Onofrei | |
// @updateURL https://gist.github.com/raw/c6ca9ed14d388e6e7e8278cebc3dfb29/YouTube_Enhancer.user.js | |
// @match https://youtube.com/* | |
// @match https://www.youtube.com/* | |
// @require https://gist.githubusercontent.com/raw/dab432d4b4bbb672896b/min.js | |
// @grant GM_addStyle |
H4sIAHaQ6lcAA+x7BVhcydIoAYIT3DV4cHd3d9cgAwzu7k5wDwR3JwR3gkuCW3AICe7uj2Qt | |
2c3u3nv//933v/duf9+Zc6a7pLuquqq6zgwtHa2eMMAC4AAgNAZaACjsnxHaAOws9a0AVg4W | |
rrTO1nbmxhbWziD/lUZPT89GT0/49c7K+vVOz8j80/1LY2JhI2RgZGNjZKFnZWVmI6RnpGdh | |
YQYhpP8vcf0Hm6O9g77dw1QkHC2A+lZ/DvcAZmz8F3R+Wgrhr/f/W9pjdEgQUBAQGX1DQjkl | |
QnXCn9uXPhDoh4vx4Wp5uL583/8OE/HPSAooKyv+/PgFI/XhUvodyKPf+jEMrS1pjeysbQys | |
XWj1HRzsgAaODgD7h0GX1BJVyWcDdOIDFSFyg+8k3kuHDvfLyb5TeKNYqDogIz3U9w4slDQx | |
HtU3UBFZCtkXLi8+nl/PpAB1ulSb2DIq96id0j++eZlfSytvdlYTpFsYF/DfIrL/l9o/sPfp | |
/qs8/m7/f9kvv9v/jMxsIIQs/x0L/Lv2//n+/0f0T6snZG3l8NBp/6/x+Of9PyMjw3/8/7+n | |
/ev+/0/b/zH/T6onN7jWEU/dFvLmhllsCVXpeExb6NjhZ//fr4Lr8V+X1/9j7R/Z/7/s/n81 | |
EPzz/p+Rnpn5P/7/39H+Kf0bWRs6Wj480Tr/U2eCB3mwMjP/mf4ZHpTN9JP+mVlYHmyA8Ev0 |
I hereby claim:
To claim this, I am signing this object:
javascript:function%20printTagNames(node){var%20nodes=node.childNodes;for(var%20i=0;i<nodes.length;i++){var%20tag=nodes[i].tagName;if(tag!=undefined){tag=tag.toLowerCase();if(!(tag%20in%20tagNames)&&exceptions.indexOf(tag)==-1){tagNames[tag]=true;}}if(nodes[i].hasChildNodes()){printTagNames(nodes[i]);}}}var%20tagNames={},exceptions=["audio","br","canvas","noscript","option","param","script","select","style"];printTagNames(document.body);alert("html,%20body,%20"+Object.keys(tagNames).join(",%20")); |