From ace8ccdabb56573b52f37d2145fe72a01b970f69 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sun, 31 Aug 2014 22:14:54 +0200 Subject: [PATCH] Minor cleanup --- .gitignore | 3 ++- LICENSE-MIT.txt | 2 +- README.md | 4 ++-- ampersands/README.md | 6 +++--- ampersands/eff.js | 4 ++-- ampersands/index.html | 8 ++++---- bacon/README.md | 6 +++--- bacon/eff.js | 4 ++-- bacon/index.html | 4 ++-- bacon/vendor/bacon.js | 2 +- base64/README.md | 4 ++-- base64/eff.js | 4 ++-- base64/index.html | 2 +- bgcolor/README.md | 4 ++-- bgcolor/eff.js | 4 ++-- bgcolor/index.html | 2 +- bgcolor/tools/parse.py | 10 +++++----- binary-ascii/README.md | 4 ++-- binary-ascii/eff.js | 4 ++-- binary-ascii/index.html | 2 +- brainfuck-minifier/README.md | 4 ++-- brainfuck-minifier/eff.js | 6 +++--- brainfuck-minifier/index.html | 2 +- byte-counter/README.md | 4 ++-- byte-counter/eff.js | 6 +++--- byte-counter/index.html | 4 ++-- byte-counter/vendor/update.sh | 2 +- byte-counter/vendor/utf8.js | 6 +++--- css-escapes/README.md | 6 +++--- css-escapes/eff.js | 14 +++++++------- css-escapes/index.html | 4 ++-- css-escapes/vendor/jsesc.js | 8 ++++---- css-escapes/vendor/update.sh | 2 +- custom-element-name/README.md | 4 ++-- custom-element-name/eff.js | 4 ++-- custom-element-name/index.html | 2 +- font-family/README.md | 6 +++--- font-family/eff.js | 10 +++++----- font-family/index.html | 6 +++--- html-entities/README.md | 6 +++--- html-entities/eff.js | 4 ++-- html-entities/index.html | 4 ++-- html-entities/vendor/he.js | 10 +++++----- js-escapes/README.md | 6 +++--- js-escapes/eff.js | 6 +++--- js-escapes/index.html | 4 ++-- js-escapes/vendor/fromcodepoint.js | 4 ++-- js-escapes/vendor/jsesc.js | 6 +++--- js-escapes/vendor/update.sh | 4 ++-- js-properties/README.md | 6 +++--- js-properties/eff.js | 10 +++++----- js-properties/index.html | 4 ++-- js-variables/README.md | 8 ++++---- js-variables/eff.js | 8 ++++---- js-variables/index.html | 4 ++-- js-variables/tools/parse.py | 10 +++++----- lua-minifier/README.md | 6 +++--- lua-minifier/eff.js | 6 +++--- lua-minifier/index.html | 4 ++-- lua-minifier/vendor/luamin.js | 2 +- lua-minifier/vendor/update.sh | 4 ++-- operator-precedence/README.md | 4 ++-- operator-precedence/eff.js | 4 ++-- operator-precedence/index.html | 4 ++-- operator-precedence/update.sh | 2 +- punycode/README.md | 6 +++--- punycode/eff.js | 4 ++-- punycode/index.html | 2 +- punycode/vendor/punycode.js | 6 +++--- punycode/vendor/update.sh | 2 +- q/README.md | 6 +++--- q/eff.js | 4 ++-- q/index.html | 4 ++-- q/vendor/q.js | 2 +- q/vendor/utf8.js | 6 +++--- quoted-printable/README.md | 6 +++--- quoted-printable/eff.js | 4 ++-- quoted-printable/index.html | 4 ++-- quoted-printable/vendor/quoted-printable.js | 2 +- quoted-printable/vendor/utf8.js | 6 +++--- regexpu/README.md | 2 +- regexpu/index.html | 2 +- reverse-string/README.md | 6 +++--- reverse-string/eff.js | 4 ++-- reverse-string/index.html | 4 ++-- reverse-string/vendor/esrever.js | 2 +- reverse-string/vendor/update.sh | 2 +- twitalics/README.md | 4 ++-- twitalics/eff.js | 4 ++-- twitalics/index.html | 2 +- unquoted-attributes/README.md | 6 +++--- unquoted-attributes/eff.js | 6 +++--- unquoted-attributes/index.html | 12 ++++++------ url/README.md | 4 ++-- url/eff.js | 4 ++-- url/index.html | 2 +- utf-8/README.md | 6 +++--- utf-8/eff.js | 4 ++-- utf-8/index.html | 4 ++-- utf-8/vendor/update.sh | 2 +- utf-8/vendor/utf8.js | 6 +++--- 101 files changed, 238 insertions(+), 237 deletions(-) diff --git a/.gitignore b/.gitignore index 496ee2c..92512a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.DS_Store \ No newline at end of file +regexpu/vendor/* +.DS_Store diff --git a/LICENSE-MIT.txt b/LICENSE-MIT.txt index 8d4d070..a81b73c 100644 --- a/LICENSE-MIT.txt +++ b/LICENSE-MIT.txt @@ -1,4 +1,4 @@ -Copyright Mathias Bynens +Copyright Mathias Bynens Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index 1ba2864..cd36ac3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [Mothereffing web developer tools](http://mothereff.in/) +# [Web developer tools](https://mothereff.in/) This repository uses separate HTML and external CSS and JS files for clarity. @@ -10,4 +10,4 @@ All code in this repository is dual licensed under the MIT/GPL licenses. You don’t have to do anything special to choose one license or the other and you don’t have to notify anyone which license you are using. You are free to re-use parts of this code in commercial projects as long as the copyright header (as mentioned in `GPL-LICENSE.txt` and `MIT-LICENSE.txt`) is left intact. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/ampersands/README.md b/ampersands/README.md index 0d02487..7c065b9 100644 --- a/ampersands/README.md +++ b/ampersands/README.md @@ -1,5 +1,5 @@ -# [Mothereffing ambiguous ampersands](http://mothereff.in/ampersands) +# [Ambiguous ampersands](https://mothereff.in/ampersands) -See for the full explanation. +See for the full explanation. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/ampersands/eff.js b/ampersands/eff.js index fd61040..bc83922 100644 --- a/ampersands/eff.js +++ b/ampersands/eff.js @@ -8,7 +8,7 @@ regexCharacterReference = /&([0-9a-zA-Z]+);/g, regexCharacterReferencesThatHaveASemicolonFreeCharacterReferenceAsSubstring, regexNoSemi, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -2245,7 +2245,7 @@ storage && (storage.ampersandText = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput textarea.onkeyup = update; textarea.oninput = function() { textarea.onkeyup = null; diff --git a/ampersands/index.html b/ampersands/index.html index 96713f1..3124cef 100644 --- a/ampersands/index.html +++ b/ampersands/index.html @@ -9,9 +9,9 @@

Ambiguous ampersand checker for HTML

# Found 2 ambiguous ampersands:

  • &lolwat;
  • &123;

Found no character references that don’t end with a semicolon.

-

See “Ambiguous ampersands in HTML”: -

To summarize: there’s a difference between unencoded ampersands (sometimes valid), ambiguous ampersands (always invalid) and encoded ampersands (always valid). An unencoded ampersand is not always an ambiguous ampersand. An unambiguous ampersand can still be invalid.

-

For more information, read the whole thing. +

See “Ambiguous ampersands in HTML”: +

To summarize: there’s a difference between unencoded ampersands (sometimes valid), ambiguous ampersands (always invalid) and encoded ampersands (always valid). An unencoded ampersand is not always an ambiguous ampersand. An unambiguous ampersand can still be invalid.

+

For more information, read the whole thing.

Note that this tool treats all ampersands as if they were used as text, i.e. outside of an attribute value and outside of <script> or <style> elements. Browsers parse ampersands differently when they’re part of an attribute value. For example, the ampersand in <a href="&foo;"> is an ambiguous ampersand, rather than a parsed entity without a semicolon (which is what this tool would report). The ampersand in <script>"&foo;"</script> is neither. -

+ \ No newline at end of file diff --git a/bacon/README.md b/bacon/README.md index ffe5695..6e6d7a5 100644 --- a/bacon/README.md +++ b/bacon/README.md @@ -1,5 +1,5 @@ -# [Bacon’s cipher encoder/decoder](http://mothereff.in/bacon) +# [Bacon’s cipher encoder/decoder](https://mothereff.in/bacon) -This tool can be used to encode/decode any text using Bacon’s cipher. It uses [_bacon-cipher_](http://mths.be/bacon) under the hood. +This tool can be used to encode/decode any text using Bacon’s cipher. It uses [_bacon-cipher_](https://mths.be/bacon) under the hood. -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/bacon/eff.js b/bacon/eff.js index 25aad03..2690d22 100644 --- a/bacon/eff.js +++ b/bacon/eff.js @@ -7,7 +7,7 @@ var use24 = radios[0]; var use26 = radios[1]; var permalink = document.getElementById('permalink'); - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date; var storage; @@ -45,7 +45,7 @@ storage && (storage.bacon = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput decoded.onkeyup = encoded.onkeyup = use24.onchange = use26.onchange = update; decoded.oninput = encoded.oninput = use24.onchange = use26.onchange = function() { decoded.onkeyup = encoded.onkeyup = null; diff --git a/bacon/index.html b/bacon/index.html index 961f007..37285f6 100644 --- a/bacon/index.html +++ b/bacon/index.html @@ -14,7 +14,7 @@

Ciphertext: ()

About this tool

-

This tool uses bacon-cipher to encode any string you enter in the ‘plaintext’ field, or to decode any Bacon-encoded ciphertext you enter in the other field. -

+

This tool uses bacon-cipher to encode any string you enter in the ‘plaintext’ field, or to decode any Bacon-encoded ciphertext you enter in the other field. +

diff --git a/bacon/vendor/bacon.js b/bacon/vendor/bacon.js index 1720bc8..2246689 100644 --- a/bacon/vendor/bacon.js +++ b/bacon/vendor/bacon.js @@ -1,4 +1,4 @@ -/*! http://mths.be/bacon v0.1.0 by @mathias | MIT license */ +/*! https://mths.be/bacon v0.1.0 by @mathias | MIT license */ ;(function(root) { // Detect free variables `exports` diff --git a/base64/README.md b/base64/README.md index ef9af10..34be40a 100644 --- a/base64/README.md +++ b/base64/README.md @@ -1,5 +1,5 @@ -# [Base64 encoder/decoder](http://mothereff.in/base64) +# [Base64 encoder/decoder](https://mothereff.in/base64) Convert any Unicode string to its Base64-encoded form, and the other way around. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). \ No newline at end of file diff --git a/base64/eff.js b/base64/eff.js index fbc37b1..02333b3 100644 --- a/base64/eff.js +++ b/base64/eff.js @@ -6,7 +6,7 @@ permalink = document.getElementById('permalink'), regexBase64 = /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/, regexWhitespace = /\s/g, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -75,7 +75,7 @@ storage && (storage.base64 = unicodeString); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput unicode.onkeyup = base64.onkeyup = update; unicode.oninput = base64.oninput = function() { unicode.onkeyup = base64.onkeyup = null; diff --git a/base64/index.html b/base64/index.html index 3af7440..9eaea14 100644 --- a/base64/index.html +++ b/base64/index.html @@ -13,5 +13,5 @@

Unicode ()

base64

- + \ No newline at end of file diff --git a/bgcolor/README.md b/bgcolor/README.md index 18ddbc1..cb70ef9 100644 --- a/bgcolor/README.md +++ b/bgcolor/README.md @@ -1,5 +1,5 @@ -# [Legacy HTML color value previewer](http://mothereff.in/bgcolor) +# [Legacy HTML color value previewer](https://mothereff.in/bgcolor) Wondering what a given legacy HTML color value looks like? This tool will show you. -Another Extremely Useful™ tool made by [Mathias Bynens](http://mathiasbynens.be/). +Another Extremely Useful™ tool made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/bgcolor/eff.js b/bgcolor/eff.js index 7724f18..918fc14 100644 --- a/bgcolor/eff.js +++ b/bgcolor/eff.js @@ -4,7 +4,7 @@ var result = document.getElementById('result'); var example = document.getElementById('example'); var permalink = document.getElementById('permalink'); - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date; var storage; @@ -40,7 +40,7 @@ storage && (storage.bgColor = value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput input.onkeyup = update; input.oninput = function() { input.onkeyup = null; diff --git a/bgcolor/index.html b/bgcolor/index.html index 6311e57..ffd4f0f 100644 --- a/bgcolor/index.html +++ b/bgcolor/index.html @@ -10,5 +10,5 @@

Legacy HTML color value previewer

<body bgcolor="
chucknorris
"
>, example</body>
- + diff --git a/bgcolor/tools/parse.py b/bgcolor/tools/parse.py index 15a8199..c287ea1 100755 --- a/bgcolor/tools/parse.py +++ b/bgcolor/tools/parse.py @@ -1,13 +1,13 @@ #!/usr/bin/python # By Yusuke Suzuki -# Modified by Mathias Bynens +# Modified by Mathias Bynens # http://code.google.com/p/esprima/issues/detail?id=110 import sys import string import re -# http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae +# https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae def highSurrogate(codePoint): return int(math.floor((codePoint - 0x10000) / 0x400) + 0xD800) @@ -16,12 +16,12 @@ def lowSurrogate(codePoint): def codePointToString(codePoint): if codePoint == 0: - string = '\\0' # http://mathiasbynens.be/notes/javascript-escapes#single + string = '\\0' # https://mathiasbynens.be/notes/javascript-escapes#single elif (codePoint >= 0x41 and codePoint <= 0x5A) or (codePoint >= 0x61 and codePoint <= 0x7A) or (codePoint >= 0x30 and codePoint <= 0x39): # [a-zA-Z0-9] string = chr(codePoint) - elif codePoint <= 0xFF: # http://mathiasbynens.be/notes/javascript-escapes#hexadecimal + elif codePoint <= 0xFF: # https://mathiasbynens.be/notes/javascript-escapes#hexadecimal string = '\\x' + '%02X' % codePoint - elif codePoint <= 0xFFFF: # http://mathiasbynens.be/notes/javascript-escapes#unicode + elif codePoint <= 0xFFFF: # https://mathiasbynens.be/notes/javascript-escapes#unicode string = '\\u' + '%04X' % codePoint else: # surrogate pairs string = '\\u' + '%04X' % highSurrogate(codePoint) + '\\u' + '%04X' % lowSurrogate(codePoint) diff --git a/binary-ascii/README.md b/binary-ascii/README.md index d324d90..2a008b0 100644 --- a/binary-ascii/README.md +++ b/binary-ascii/README.md @@ -1,5 +1,5 @@ -# [Mothereffing binary ↔ ASCII text converter](http://mothereff.in/binary-ascii) +# [Binary ↔ ASCII text converter](https://mothereff.in/binary-ascii) Convert binary digits to extended ASCII text and the other way around. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/binary-ascii/eff.js b/binary-ascii/eff.js index 6cdbbb9..166046d 100644 --- a/binary-ascii/eff.js +++ b/binary-ascii/eff.js @@ -8,7 +8,7 @@ regexAnyCharacter = /[\s\S]/g, regexBinary = /^(\s*[01]{8}\s*)*$/, regexExtendedASCII = /^[\x00-\xff]*$/, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -68,7 +68,7 @@ storage && (storage.ascii = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput ascii.onkeyup = binary.onkeyup = update; ascii.oninput = binary.oninput = function() { ascii.onkeyup = binary.onkeyup = null; diff --git a/binary-ascii/index.html b/binary-ascii/index.html index f18e215..3063500 100644 --- a/binary-ascii/index.html +++ b/binary-ascii/index.html @@ -13,5 +13,5 @@

Extended ASCII ( + \ No newline at end of file diff --git a/brainfuck-minifier/README.md b/brainfuck-minifier/README.md index 9d70705..56899cd 100644 --- a/brainfuck-minifier/README.md +++ b/brainfuck-minifier/README.md @@ -1,7 +1,7 @@ -# [Mothereffing brainfuck minifier](http://mothereff.in/brainfuck-minifier) +# [Brainfuck minifier](https://mothereff.in/brainfuck-minifier) [Brainfuck](http://esolangs.org/wiki/Brainfuck) _(not capitalized except at the start of a sentence)_ is an esoteric programming language. It has eight commands — `+-<>[],.` — and ignores all other characters. As a result, no special syntax for comments is needed, as long as the comments don’t contain the command characters. This tool will automatically remove comments from any brainfuck snippet you enter. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/brainfuck-minifier/eff.js b/brainfuck-minifier/eff.js index 44b19ba..12bd059 100644 --- a/brainfuck-minifier/eff.js +++ b/brainfuck-minifier/eff.js @@ -11,7 +11,7 @@ ratio = dds[2], regexNotBrainfuck = /[^\+\-<>\[\],\.]/g, regexNumberGroup = /(?=(?:\d{3})+$)(?!\b)/g, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -25,7 +25,7 @@ }()), characterReferences; - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2decode(string) { var output = [], counter = 0, @@ -89,7 +89,7 @@ storage && (storage.brainfuck = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput textarea.onkeyup = update; textarea.oninput = function() { textarea.onkeyup = null; diff --git a/brainfuck-minifier/index.html b/brainfuck-minifier/index.html index 8693d01..533563f 100644 --- a/brainfuck-minifier/index.html +++ b/brainfuck-minifier/index.html @@ -41,5 +41,5 @@

Minified result ()

About brainfuck

Brainfuck (not capitalized except at the start of a sentence) is an esoteric programming language. It has eight commands — +-<>[],. — and ignores all other characters. As a result, no special syntax for comments is needed, as long as the comments don’t contain the command characters. -

+ \ No newline at end of file diff --git a/byte-counter/README.md b/byte-counter/README.md index 422af06..084eb0f 100644 --- a/byte-counter/README.md +++ b/byte-counter/README.md @@ -1,3 +1,3 @@ -# [String length and UTF-8 byte counter](http://mothereff.in/byte-counter) +# [String length and UTF-8 byte counter](https://mothereff.in/byte-counter) -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/byte-counter/eff.js b/byte-counter/eff.js index d97d2c7..d32c64c 100644 --- a/byte-counter/eff.js +++ b/byte-counter/eff.js @@ -5,7 +5,7 @@ bytes = document.getElementById('bytes'), permalink = document.getElementById('permalink'), regexNumberGroup = /(?=(?:\d{3})+$)(?!\b)/g, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -18,7 +18,7 @@ } catch(e) {} }()); - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2decode(string) { var output = [], counter = 0, @@ -67,7 +67,7 @@ storage && (storage.byteCountText = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput textarea.onkeyup = update; textarea.oninput = function() { textarea.onkeyup = null; diff --git a/byte-counter/index.html b/byte-counter/index.html index 352af6b..fe20de3 100644 --- a/byte-counter/index.html +++ b/byte-counter/index.html @@ -9,7 +9,7 @@

UTF-8 string length & byte counter

That’s 5 characters, totaling 7 bytes. -

Pro tip: add http://mothereff.in/byte-counter#%s to the custom search engines / location bar shortcuts in your browser of choice. Whenever I want to check string length / byte count, I just enter len some string in my address bar. -

+

Pro tip: add https://mothereff.in/byte-counter#%s to the custom search engines / location bar shortcuts in your browser of choice. Whenever I want to check string length / byte count, I just enter len some string in my address bar. +

diff --git a/byte-counter/vendor/update.sh b/byte-counter/vendor/update.sh index c75f63f..20a92c3 100755 --- a/byte-counter/vendor/update.sh +++ b/byte-counter/vendor/update.sh @@ -2,7 +2,7 @@ cd "$(dirname "${BASH_SOURCE}")" -curl -# "https://raw.github.com/mathiasbynens/utf8.js/master/utf8.js" > utf8.js +curl -# "https://raw.githubusercontent.com/mathiasbynens/utf8.js/master/utf8.js" > utf8.js cat "utf8.js" "../eff.js" > "/tmp/byte-counter.js" echo "Copying concatenated JS to pasteboard..." diff --git a/byte-counter/vendor/utf8.js b/byte-counter/vendor/utf8.js index be74021..1560c43 100644 --- a/byte-counter/vendor/utf8.js +++ b/byte-counter/vendor/utf8.js @@ -1,4 +1,4 @@ -/*! http://mths.be/utf8js v2.0.0 by @mathias */ +/*! https://mths.be/utf8js v2.0.0 by @mathias */ ;(function(root) { // Detect free variables `exports` @@ -19,7 +19,7 @@ var stringFromCharCode = String.fromCharCode; - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2decode(string) { var output = []; var counter = 0; @@ -46,7 +46,7 @@ return output; } - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2encode(array) { var length = array.length; var index = -1; diff --git a/css-escapes/README.md b/css-escapes/README.md index 5f04ef3..3f4a2c7 100644 --- a/css-escapes/README.md +++ b/css-escapes/README.md @@ -1,7 +1,7 @@ -# [CSS escapes](http://mothereff.in/css-escapes) +# [CSS escapes](https://mothereff.in/css-escapes) Ever needed to escape a character in CSS? Ever used something like `

` or even `

` and got stuck trying to style it? -You can [learn how to do this yourself](http://mathiasbynens.be/notes/css-escapes), or just let this tool do all the work for you. Or both. Whatever. +You can [learn how to do this yourself](https://mathiasbynens.be/notes/css-escapes), or just let this tool do all the work for you. Or both. Whatever. -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/css-escapes/eff.js b/css-escapes/eff.js index b944038..1cb919f 100644 --- a/css-escapes/eff.js +++ b/css-escapes/eff.js @@ -30,7 +30,7 @@ '\'': '\\\'', '\\': '\\\\' }; - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date, storage, @@ -65,9 +65,9 @@ return array; } - // http://mathiasbynens.be/notes/css-escapes + // https://mathiasbynens.be/notes/css-escapes function cssEscape(string, escapeNonASCII) { - // Based on `ucs2decode` from http://mths.be/punycode + // Based on `ucs2decode` from https://mths.be/punycode var firstChar = string.charAt(0), output = '', counter = 0, @@ -155,7 +155,7 @@ surrogatePairCount = escapeResult.surrogatePairCount; // IE 8 can handle leading underscores; no point in escaping them here: qsaValue = doubleSlash(cssValue.replace(/^#\\_/, '#_')); - // http://mths.be/etago + // https://mths.be/etago jsValue = (checkbox.checked ? jsesc(value) : doubleSlash(value)).replace(/<\/script/g, '<\\/script'); } var link = '#' + (+checkbox.checked) + encode(value); @@ -169,10 +169,10 @@ text(js, jsValue); permalink.href = link; storage && (storage.cssEscapes = value); - example.href = 'data:text/html;charset=utf-8,' + encodeURIComponent('Mothereffing CSS escapes example

Mothereffing CSS escapes example

' + value.replace(/

If you can read this, the escaped CSS selector worked.

' + (surrogatePairCount ? '

Standard CSS character escape sequences for supplementary Unicode characters aren’t supported in older versions of WebKit. This test case will fail in those browsers. It’s better to leave these characters unescaped.

' : '') + ' diff --git a/css-escapes/vendor/jsesc.js b/css-escapes/vendor/jsesc.js index 3b86cb8..d44320b 100644 --- a/css-escapes/vendor/jsesc.js +++ b/css-escapes/vendor/jsesc.js @@ -1,4 +1,4 @@ -/*! http://mths.be/jsesc v0.4.3 by @mathias */ +/*! https://mths.be/jsesc v0.4.3 by @mathias */ ;(function(root) { // Detect free variables `exports` @@ -61,7 +61,7 @@ /*--------------------------------------------------------------------------*/ - // http://mathiasbynens.be/notes/javascript-escapes#single + // https://mathiasbynens.be/notes/javascript-escapes#single var singleEscapes = { '"': '\\"', '\'': '\\\'', @@ -77,7 +77,7 @@ var regexSingleEscape = /["'\\\b\f\n\r\t]/; var regexDigit = /[0-9]/; - var regexWhitelist = /[\x20\x21\x23-\x26\x28-\x5B\x5D-\x7E]/; + var regexWhitelist = /[ !#-&\(-\[\]-~]/; var jsesc = function(argument, options) { // Handle options @@ -176,7 +176,7 @@ ) { second = string.charCodeAt(index + 1); if (second >= 0xDC00 && second <= 0xDFFF) { // low surrogate - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae codePoint = (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; result += '\\u{' + codePoint.toString(16).toUpperCase() + '}'; index++; diff --git a/css-escapes/vendor/update.sh b/css-escapes/vendor/update.sh index b97475c..37f3683 100755 --- a/css-escapes/vendor/update.sh +++ b/css-escapes/vendor/update.sh @@ -2,7 +2,7 @@ cd "$(dirname "${BASH_SOURCE}")" -curl -# "https://raw.github.com/mathiasbynens/jsesc/master/jsesc.js" > jsesc.js +curl -# "https://raw.githubusercontent.com/mathiasbynens/jsesc/master/jsesc.js" > jsesc.js cat "jsesc.js" "../eff.js" > "/tmp/css-escapes.js" echo "Copying concatenated JS to pasteboard..." diff --git a/custom-element-name/README.md b/custom-element-name/README.md index c11441c..6eab23b 100644 --- a/custom-element-name/README.md +++ b/custom-element-name/README.md @@ -1,5 +1,5 @@ -# [Custom element name validator](http://mothereff.in/custom-element-name) +# [Custom element name validator](https://mothereff.in/custom-element-name) Wondering if you can use a given string as a [custom element name](http://customelements.io/) in HTML? This tool will tell you. -Made by [Mathias Bynens](http://mathiasbynens.be/) using [Sindre Sorhus’s excellent validate-element-name](https://github.com/sindresorhus/validate-element-name). +Made by [Mathias Bynens](https://mathiasbynens.be/) using [Sindre Sorhus’s excellent validate-element-name](https://github.com/sindresorhus/validate-element-name). diff --git a/custom-element-name/eff.js b/custom-element-name/eff.js index fcde210..f12084a 100644 --- a/custom-element-name/eff.js +++ b/custom-element-name/eff.js @@ -4,7 +4,7 @@ var valid = window.valid; var message = window.message; var permalink = document.getElementById('permalink'); - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date; var storage; @@ -51,7 +51,7 @@ storage && (storage.customElementName = value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput input.onkeyup = update; input.oninput = function() { input.onkeyup = null; diff --git a/custom-element-name/index.html b/custom-element-name/index.html index 497599a..95c87e4 100644 --- a/custom-element-name/index.html +++ b/custom-element-name/index.html @@ -13,6 +13,6 @@

Custom HTML element name validator

About this tool

This tool uses Sindre Sorhus’s validate-element-name under the hood. -

+ diff --git a/font-family/README.md b/font-family/README.md index 1456cbd..d881ccf 100644 --- a/font-family/README.md +++ b/font-family/README.md @@ -1,5 +1,5 @@ -# [Unquoted CSS font family name validator](http://mothereff.in/font-family) +# [Unquoted CSS font family name validator](https://mothereff.in/font-family) -Wondering if a given character sequence can be used as an unquoted font family name in CSS? [Read all about it](http://mathiasbynens.be/notes/font-family), or just use this tool. +Wondering if a given character sequence can be used as an unquoted font family name in CSS? [Read all about it](https://mathiasbynens.be/notes/font-family), or just use this tool. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). \ No newline at end of file diff --git a/font-family/eff.js b/font-family/eff.js index 93f3b11..cfb2446 100644 --- a/font-family/eff.js +++ b/font-family/eff.js @@ -31,7 +31,7 @@ regexLineBreak = /\r\n?/g, regexSimpleEscapeCharacters = /[ !"#$%&'()*+,.\/;<=>?@\[\\\]^`{|}~]/, regexSpaceAtStart = /^\x20/, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -81,9 +81,9 @@ return '\'' + string.replace(regexSingleQuote, '\\\'') + '\''; } - // http://mathiasbynens.be/notes/css-escapes + // https://mathiasbynens.be/notes/css-escapes function cssEscape(string, escapeForString) { - // Based on `ucs2decode` from http://mths.be/punycode + // Based on `ucs2decode` from https://mths.be/punycode var firstChar = string.charAt(0), output = '', counter = 0, @@ -247,7 +247,7 @@ storage && (storage.fontFamily = value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput input.onkeydown = checkbox.onchange = update; input.oninput = function() { this.onkeydown = null; @@ -270,7 +270,7 @@ }(this, document)); -// Optimized Google Analytics snippet: http://mths.be/aab */ +// Optimized Google Analytics snippet: https://mths.be/aab */ window._gaq = [['_setAccount', 'UA-6065217-60'], ['_trackPageview']]; (function(d, t) { var g = d.createElement(t), diff --git a/font-family/index.html b/font-family/index.html index 2fd26b4..aa4f1a2 100644 --- a/font-family/index.html +++ b/font-family/index.html @@ -7,7 +7,7 @@

Unquoted CSS font family name validator

-

Wondering if a given character sequence can be used as an unquoted font family name in CSS? Read all about it, or just use this tool. +

Wondering if a given character sequence can be used as an unquoted font family name in CSS? Read all about it, or just use this tool.

@@ -15,7 +15,7 @@

Unquoted CSS font family name validator

You can use this as an unquoted font family name in CSS:

font-family: Hawaii\ 5-0;
-

Standard CSS character escape sequences for supplementary Unicode characters aren’t currently supported in WebKit, though. It’s better to leave these characters unescaped. +

Standard CSS character escape sequences for supplementary Unicode characters aren’t currently supported in WebKit, though. It’s better to leave these characters unescaped.

You can use it with quotes: @@ -25,5 +25,5 @@

Unquoted CSS font family name validator

If used unquoted, this font-family name contains a keyword in CSS, and it refers to the keyword value rather than a font family with that name. If you mean to use a font with this name rather than the keyword value, you must use quotes:

font-family: 'sans-serif';
- + \ No newline at end of file diff --git a/html-entities/README.md b/html-entities/README.md index 285bcf0..96d92ea 100644 --- a/html-entities/README.md +++ b/html-entities/README.md @@ -1,5 +1,5 @@ -# [HTML entity encoder/decoder](http://mothereff.in/html-entities) +# [HTML entity encoder/decoder](https://mothereff.in/html-entities) -This tool automatically HTML-encodes any string you enter. It can also decode HTML input. It uses [_he_](http://mths.be/he) under the hood. +This tool automatically HTML-encodes any string you enter. It can also decode HTML input. It uses [_he_](https://mths.be/he) under the hood. -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/html-entities/eff.js b/html-entities/eff.js index 8979895..6fb8683 100644 --- a/html-entities/eff.js +++ b/html-entities/eff.js @@ -7,7 +7,7 @@ encodeSpecialOnly = checkboxes[0], useNamedReferences = checkboxes[1], permalink = document.getElementById('permalink'), - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -46,7 +46,7 @@ storage && (storage.he = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput decoded.onkeyup = encoded.onkeyup = encodeSpecialOnly.onchange = useNamedReferences.onchange = update; decoded.oninput = encoded.oninput = encodeSpecialOnly.onchange = useNamedReferences.onchange = function() { decoded.onkeyup = encoded.onkeyup = null; diff --git a/html-entities/index.html b/html-entities/index.html index 346497a..1915700 100644 --- a/html-entities/index.html +++ b/html-entities/index.html @@ -14,7 +14,7 @@

Encoded: (

About this tool

-

This tool uses he to HTML-encode any string you enter in the ‘decoded’ field, or to decode any HTML-encoded string you enter in the ‘encoded’ field. -

+

This tool uses he to HTML-encode any string you enter in the ‘decoded’ field, or to decode any HTML-encoded string you enter in the ‘encoded’ field. +

diff --git a/html-entities/vendor/he.js b/html-entities/vendor/he.js index 30be85d..397a1b9 100644 --- a/html-entities/vendor/he.js +++ b/html-entities/vendor/he.js @@ -1,4 +1,4 @@ -/*! http://mths.be/he v0.4.1 by @mathias | MIT license */ +/*! https://mths.be/he v0.4.1 by @mathias | MIT license */ ;(function(root) { // Detect free variables `exports`. @@ -37,7 +37,7 @@ '&': '&', '\'': ''', '<': '<', - // See http://mathiasbynens.be/notes/ambiguous-ampersands: in HTML, the + // See https://mathiasbynens.be/notes/ambiguous-ampersands: in HTML, the // following is not strictly necessary unless it’s part of a tag or an // unquoted attribute value. We’re only escaping it to support those // situations, and for XML support. @@ -92,7 +92,7 @@ return result; }; - // Modified version of `ucs2encode`; see http://mths.be/punycode. + // Modified version of `ucs2encode`; see https://mths.be/punycode. var codePointToSymbol = function(codePoint, strict) { var output = ''; if ((codePoint >= 0xD800 && codePoint <= 0xDFFF) || codePoint > 0x10FFFF) { @@ -191,7 +191,7 @@ return string // Encode astral symbols. .replace(regexAstralSymbols, function($0) { - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae var high = $0.charCodeAt(0); var low = $0.charCodeAt(1); var codePoint = (high - 0xD800) * 0x400 + low - 0xDC00 + 0x10000; @@ -245,7 +245,7 @@ if (has(decodeMap, reference)) { return decodeMap[reference]; } else { - // Ambiguous ampersand; see http://mths.be/notes/ambiguous-ampersands. + // Ambiguous ampersand; see https://mths.be/notes/ambiguous-ampersands. if (strict) { parseError( 'named character reference was not terminated by a semicolon' diff --git a/js-escapes/README.md b/js-escapes/README.md index e888409..d15bcae 100644 --- a/js-escapes/README.md +++ b/js-escapes/README.md @@ -1,5 +1,5 @@ -# [Mothereffing JavaScript escapes](http://mothereff.in/js-escapes) +# [JavaScript escapes](https://mothereff.in/js-escapes) -See for the full explanation. +See for the full explanation. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/js-escapes/eff.js b/js-escapes/eff.js index 851f8ea..783b54e 100644 --- a/js-escapes/eff.js +++ b/js-escapes/eff.js @@ -8,7 +8,7 @@ var checkboxES6 = inputs[1]; var checkboxStringBody = inputs[2]; var permalink = document.getElementById('permalink'); - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date; var storage; @@ -44,7 +44,7 @@ } // Unescape ES6 Unicode code point escapes - // http://mathiasbynens.be/notes/javascript-escapes#unicode-code-point + // https://mathiasbynens.be/notes/javascript-escapes#unicode-code-point // This is for browsers who support ES3/ES5 but haven’t implemented the new // ES6 escape sequences yet. function unescapeES6(string) { @@ -100,7 +100,7 @@ permalink.hash = +checkboxOnlyASCII.checked + encode(textarea.value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput textarea.onkeyup = checkboxOnlyASCII.onchange = checkboxES6.onchange = checkboxStringBody.onchange = update; textarea.oninput = function() { textarea.onkeyup = null; diff --git a/js-escapes/index.html b/js-escapes/index.html index 44c118e..5c13998 100644 --- a/js-escapes/index.html +++ b/js-escapes/index.html @@ -13,8 +13,8 @@

JavaScript escapes

'Fingerspitzengef\xFChl is a German term.\nIt\u2019s pronounced as follows: [\u02C8f\u026A\u014B\u0250\u02CC\u0283p\u026Ats\u0259n\u0261\u0259\u02CCfy\u02D0l]'
-

Learn all about JavaScript character escapes and do it manually, or just use this tool. -

+

Learn all about JavaScript character escapes and do it manually, or just use this tool. +

diff --git a/js-escapes/vendor/fromcodepoint.js b/js-escapes/vendor/fromcodepoint.js index 62cc328..9c5aaa7 100644 --- a/js-escapes/vendor/fromcodepoint.js +++ b/js-escapes/vendor/fromcodepoint.js @@ -1,4 +1,4 @@ -/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ +/*! https://mths.be/fromcodepoint v0.1.0 by @mathias */ if (!String.fromCodePoint) { (function() { var stringFromCharCode = String.fromCharCode; @@ -25,7 +25,7 @@ if (!String.fromCodePoint) { if (codePoint <= 0xFFFF) { // BMP code point codeUnits.push(codePoint); } else { // Astral code point; split in surrogate halves - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae codePoint -= 0x10000; highSurrogate = (codePoint >> 10) + 0xD800; lowSurrogate = (codePoint % 0x400) + 0xDC00; diff --git a/js-escapes/vendor/jsesc.js b/js-escapes/vendor/jsesc.js index 3b86cb8..f54be66 100644 --- a/js-escapes/vendor/jsesc.js +++ b/js-escapes/vendor/jsesc.js @@ -1,4 +1,4 @@ -/*! http://mths.be/jsesc v0.4.3 by @mathias */ +/*! https://mths.be/jsesc v0.4.3 by @mathias */ ;(function(root) { // Detect free variables `exports` @@ -61,7 +61,7 @@ /*--------------------------------------------------------------------------*/ - // http://mathiasbynens.be/notes/javascript-escapes#single + // https://mathiasbynens.be/notes/javascript-escapes#single var singleEscapes = { '"': '\\"', '\'': '\\\'', @@ -176,7 +176,7 @@ ) { second = string.charCodeAt(index + 1); if (second >= 0xDC00 && second <= 0xDFFF) { // low surrogate - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae codePoint = (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; result += '\\u{' + codePoint.toString(16).toUpperCase() + '}'; index++; diff --git a/js-escapes/vendor/update.sh b/js-escapes/vendor/update.sh index 5f0f073..35602d9 100755 --- a/js-escapes/vendor/update.sh +++ b/js-escapes/vendor/update.sh @@ -2,8 +2,8 @@ cd "$(dirname "${BASH_SOURCE}")" -curl -# "https://raw.github.com/mathiasbynens/String.fromCodePoint/master/fromcodepoint.js" > "fromcodepoint.js" -curl -# "https://raw.github.com/mathiasbynens/jsesc/master/jsesc.js" > "jsesc.js" +curl -# "https://raw.githubusercontent.com/mathiasbynens/String.fromCodePoint/master/fromcodepoint.js" > "fromcodepoint.js" +curl -# "https://raw.githubusercontent.com/mathiasbynens/jsesc/master/jsesc.js" > "jsesc.js" cat "fromcodepoint.js" "jsesc.js" "../eff.js" > "/tmp/string-escape.js" echo "Copying concatenated JS to pasteboard..." diff --git a/js-properties/README.md b/js-properties/README.md index 2be2fa7..afd127c 100644 --- a/js-properties/README.md +++ b/js-properties/README.md @@ -1,5 +1,5 @@ -# [Unquoted JavaScript property name validator](http://mothereff.in/js-properties) +# [Unquoted JavaScript property name validator](https://mothereff.in/js-properties) -Wondering if a given character sequence can be used as an unquoted property name in JavaScript? Can dot notation be used to get or set this property based on its name? [Read all about it](http://mathiasbynens.be/notes/javascript-properties), or just use this tool. +Wondering if a given character sequence can be used as an unquoted property name in JavaScript? Can dot notation be used to get or set this property based on its name? [Read all about it](https://mathiasbynens.be/notes/javascript-properties), or just use this tool. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/js-properties/eff.js b/js-properties/eff.js index 2516483..92f930e 100644 --- a/js-properties/eff.js +++ b/js-properties/eff.js @@ -12,7 +12,7 @@ mark2 = markElems[1], permalink = document.getElementById('permalink'), // According to ECMAScript 5.1 + Unicode 6.1 - // See http://mathiasbynens.be/notes/javascript-identifiers + // See https://mathiasbynens.be/notes/javascript-identifiers identifierStart = '$A-Z\_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc', identifierPartExclusive = '0-9\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19b0-\u19c0\u19c8\u19c9\u19d0-\u19d9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f1\ua900-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f', regexIdentifierName = RegExp('^[' + identifierStart + '][' + identifierStart + identifierPartExclusive + ']*$'), @@ -22,9 +22,9 @@ regexNumber = /^(?![+-])([0-9a-fA-FxX\+\-\.]+)$/, regexSpecialCharacters = /['\\]/g, regexOctalLiteral = /^0[0-7]+$/, - // http://mathiasbynens.be/notes/javascript-escapes#unicode + // https://mathiasbynens.be/notes/javascript-escapes#unicode regexUnicodeEscape = /\\u([a-fA-F0-9]{4})/g, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -97,7 +97,7 @@ storage && (storage.jsProps = value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput input.onkeydown = update; input.oninput = function() { this.onkeydown = null; @@ -119,7 +119,7 @@ }(this, document)); -// Optimized Google Analytics snippet: http://mths.be/aab */ +// Optimized Google Analytics snippet: https://mths.be/aab */ window._gaq = [['_setAccount', 'UA-6065217-60'], ['_trackPageview']]; (function(d, t) { var g = d.createElement(t), diff --git a/js-properties/index.html b/js-properties/index.html index 1909243..ebc31d8 100644 --- a/js-properties/index.html +++ b/js-properties/index.html @@ -6,12 +6,12 @@

Unquoted JavaScript property name validator

-

Wondering if a given character sequence can be used as an unquoted property name in JavaScript? Can dot notation be used to get or set this property based on its name? Read all about it, or just use this tool. +

Wondering if a given character sequence can be used as an unquoted property name in JavaScript? Can dot notation be used to get or set this property based on its name? Read all about it, or just use this tool.

You don’t need to quote this property name for backwards compatibility with ES3:

var object = {
foo-bar: 42
};

You can’t use dot notation here:

object.foo-bar = 42;
- + \ No newline at end of file diff --git a/js-variables/README.md b/js-variables/README.md index 776409e..5573129 100644 --- a/js-variables/README.md +++ b/js-variables/README.md @@ -1,14 +1,14 @@ -# [Mothereffing JavaScript variable name validator](http://mothereff.in/js-variables) +# [JavaScript variable name validator](https://mothereff.in/js-variables) Wondering if you can use a given string as a variable name in JavaScript? This tool will tell you. It validates identifiers according to ECMAScript 5.1 and Unicode 6.3, but will show warnings if an ECMAScript 3 reserved word is used, or when an otherwise valid identifier would not be valid under Unicode 3.0. -See [_Valid JavaScript variable names_](http://mathiasbynens.be/notes/javascript-identifiers) for the full explanation. +See [_Valid JavaScript variable names_](https://mathiasbynens.be/notes/javascript-identifiers) for the full explanation. -Currently, two separate regular expressions are being used: one to detect if the input string is a [reserved word](http://mathiasbynens.be/notes/javascript-identifiers#reserved-word), and another to check if it’s a valid identifier name. I chose not to do this, but technically it’s possible to merge these two together into [a single big-ass regex (9,583 characters)](https://gist.github.com/mathiasbynens/6334847): +Currently, two separate regular expressions are being used: one to detect if the input string is a [reserved word](https://mathiasbynens.be/notes/javascript-identifiers#reserved-word), and another to check if it’s a valid identifier name. I chose not to do this, but technically it’s possible to merge these two together into [a single big-ass regex (9,583 characters)](https://gist.github.com/mathiasbynens/6334847): ```js // ES5.1 / Unicode 6.3.0 /^(?!(?:do|if|in|for|let|new|try|var|case|else|enum|eval|null|this|true|void|with|break|catch|class|const|false|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$)[\x24A-Z\x5Fa-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\x240-9A-Z\x5Fa-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/ ``` -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/js-variables/eff.js b/js-variables/eff.js index d611261..c625d97 100644 --- a/js-variables/eff.js +++ b/js-variables/eff.js @@ -29,9 +29,9 @@ regexImmutableProps = /^(?:NaN|Infinity|undefined)$/, // Zero-width characters that are allowed in IdentifierPart as per ES5 regexZeroWidth = /\u200C|\u200D/, - // http://mathiasbynens.be/notes/javascript-escapes#unicode + // https://mathiasbynens.be/notes/javascript-escapes#unicode regexUnicodeEscape = /\\u([a-fA-F0-9]{4})/g, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -61,7 +61,7 @@ immutableWarning, isReserved, hasZeroWidth; - // only Unicode escapes are allowed: http://mathiasbynens.be/notes/javascript-escapes#unicode + // only Unicode escapes are allowed: https://mathiasbynens.be/notes/javascript-escapes#unicode tmp = value.replace(regexUnicodeEscape, function($0, $1) { return stringFromCharCode(parseInt($1, 16)); }); @@ -95,7 +95,7 @@ storage && (storage.jsVars = value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput input.onkeyup = update; input.oninput = function() { input.onkeyup = null; diff --git a/js-variables/index.html b/js-variables/index.html index ec65928..bf92405 100644 --- a/js-variables/index.html +++ b/js-variables/index.html @@ -6,7 +6,7 @@

JavaScript variable name validator

-

Wondering if you can use a given string as a variable name in JavaScript? Learn how it works, or just use this tool.

+

Wondering if you can use a given string as a variable name in JavaScript? Learn how it works, or just use this tool.

That’s a valid identifier according to ECMAScript 5.1 / Unicode 6.3.0. @@ -16,5 +16,5 @@

JavaScript variable name validator

However, it is not a valid identifier as per ES3. You may want to avoid using it if support for older JavaScript engines is a concern.

However, it’s not a valid identifier according to Unicode 3.0. You may want to avoid using it if support for older JavaScript engines is a concern.

It looks like your browser’s JavaScript engine doesn’t handle this variable name correctly. Good catch! Please file a bug. For Chrome/v8, you can just leave a comment on bug #1965. For Safari or other WebKit browsers that use the JavaScriptCore engine, comment on bug #79353. For Internet Explorer/Chakra, comment on bug #725622. For Opera/Carakan, report a new bug, but refer to ticket DSK-358119. -

+ \ No newline at end of file diff --git a/js-variables/tools/parse.py b/js-variables/tools/parse.py index 15a8199..c287ea1 100755 --- a/js-variables/tools/parse.py +++ b/js-variables/tools/parse.py @@ -1,13 +1,13 @@ #!/usr/bin/python # By Yusuke Suzuki -# Modified by Mathias Bynens +# Modified by Mathias Bynens # http://code.google.com/p/esprima/issues/detail?id=110 import sys import string import re -# http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae +# https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae def highSurrogate(codePoint): return int(math.floor((codePoint - 0x10000) / 0x400) + 0xD800) @@ -16,12 +16,12 @@ def lowSurrogate(codePoint): def codePointToString(codePoint): if codePoint == 0: - string = '\\0' # http://mathiasbynens.be/notes/javascript-escapes#single + string = '\\0' # https://mathiasbynens.be/notes/javascript-escapes#single elif (codePoint >= 0x41 and codePoint <= 0x5A) or (codePoint >= 0x61 and codePoint <= 0x7A) or (codePoint >= 0x30 and codePoint <= 0x39): # [a-zA-Z0-9] string = chr(codePoint) - elif codePoint <= 0xFF: # http://mathiasbynens.be/notes/javascript-escapes#hexadecimal + elif codePoint <= 0xFF: # https://mathiasbynens.be/notes/javascript-escapes#hexadecimal string = '\\x' + '%02X' % codePoint - elif codePoint <= 0xFFFF: # http://mathiasbynens.be/notes/javascript-escapes#unicode + elif codePoint <= 0xFFFF: # https://mathiasbynens.be/notes/javascript-escapes#unicode string = '\\u' + '%04X' % codePoint else: # surrogate pairs string = '\\u' + '%04X' % highSurrogate(codePoint) + '\\u' + '%04X' % lowSurrogate(codePoint) diff --git a/lua-minifier/README.md b/lua-minifier/README.md index fed4df6..e7210e3 100644 --- a/lua-minifier/README.md +++ b/lua-minifier/README.md @@ -1,5 +1,5 @@ -# [Lua minifier](http://mothereff.in/lua-minifier) +# [Lua minifier](https://mothereff.in/lua-minifier) -This tool will automatically minify any valid Lua snippet you enter, using [luamin](http://mths.be/luamin). Under the hood, luamin uses [luaparse](http://oxyc.github.com/luaparse/). +This tool will automatically minify any valid Lua snippet you enter, using [luamin](https://mths.be/luamin). Under the hood, luamin uses [luaparse](http://oxyc.github.com/luaparse/). -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). \ No newline at end of file diff --git a/lua-minifier/eff.js b/lua-minifier/eff.js index 9045e6c..211007f 100644 --- a/lua-minifier/eff.js +++ b/lua-minifier/eff.js @@ -10,7 +10,7 @@ after = dds[1], ratio = dds[2], regexNumberGroup = /(?=(?:\d{3})+$)(?!\b)/g, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -24,7 +24,7 @@ }()), characterReferences; - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2decode(string) { var output = [], counter = 0, @@ -94,7 +94,7 @@ permalink.hash = encode(value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput textarea.onkeyup = update; textarea.oninput = function() { textarea.onkeyup = null; diff --git a/lua-minifier/index.html b/lua-minifier/index.html index a486aba..1eab653 100644 --- a/lua-minifier/index.html +++ b/lua-minifier/index.html @@ -30,8 +30,8 @@

Minified result (34.65%

About this tool

-

This tool uses luamin to minify any Lua snippet you enter. Under the hood, luamin uses luaparse. -

+

This tool uses luamin to minify any Lua snippet you enter. Under the hood, luamin uses luaparse. +

\ No newline at end of file diff --git a/lua-minifier/vendor/luamin.js b/lua-minifier/vendor/luamin.js index ecffc9d..6ab604e 100644 --- a/lua-minifier/vendor/luamin.js +++ b/lua-minifier/vendor/luamin.js @@ -1,4 +1,4 @@ -/*! http://mths.be/luamin v0.2.7 by @mathias */ +/*! https://mths.be/luamin v0.2.7 by @mathias */ ;(function(root) { // Detect free variables `exports` diff --git a/lua-minifier/vendor/update.sh b/lua-minifier/vendor/update.sh index 5502571..3cf9a8b 100755 --- a/lua-minifier/vendor/update.sh +++ b/lua-minifier/vendor/update.sh @@ -2,8 +2,8 @@ cd "$(dirname "${BASH_SOURCE}")" -curl -# "https://raw.github.com/oxyc/luaparse/master/luaparse.js" > luaparse.js -curl -# "https://raw.github.com/mathiasbynens/luamin/master/luamin.js" > luamin.js +curl -# "https://raw.githubusercontent.com/oxyc/luaparse/master/luaparse.js" > luaparse.js +curl -# "https://raw.githubusercontent.com/mathiasbynens/luamin/master/luamin.js" > luamin.js cat "luaparse.js" "luamin.js" "../eff.js" > "/tmp/lua-minifier.js" echo "Copying concatenated JS to pasteboard..." diff --git a/operator-precedence/README.md b/operator-precedence/README.md index 264fbdb..9a1c71a 100644 --- a/operator-precedence/README.md +++ b/operator-precedence/README.md @@ -1,5 +1,5 @@ -# [Mothereffing operator precedence in JavaScript](http://mothereff.in/operator-precedence) +# [Operator precedence in JavaScript](https://mothereff.in/operator-precedence) Writing JavaScript? Operator precedence giving you a hard time? You can either learn [this table](https://developer.mozilla.org/en/JavaScript/Reference/Operators/Operator_Precedence) by heart… Or just use this tool to check if you need parentheses or not. Your call. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/operator-precedence/eff.js b/operator-precedence/eff.js index 0ba0869..75c7541 100644 --- a/operator-precedence/eff.js +++ b/operator-precedence/eff.js @@ -4,7 +4,7 @@ b = document.getElementById('b'), permalink = document.getElementById('permalink'), output = document.getElementById('output'), - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -54,7 +54,7 @@ permalink.href = '#' + encode(textA + '@' + textB); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput a.onkeyup = b.onkeyup = update; a.oninput = b.oninput = function() { a.onkeyup = b.onkeyup = null; diff --git a/operator-precedence/index.html b/operator-precedence/index.html index 72b72fd..11fe926 100644 --- a/operator-precedence/index.html +++ b/operator-precedence/index.html @@ -7,8 +7,8 @@

JavaScript operator precedence

Is a << b + 3 * c semantically equivalent to a << (b + 3) * c?

Nope. -

+ - \ No newline at end of file + diff --git a/operator-precedence/update.sh b/operator-precedence/update.sh index 4c533e0..dcb3fbb 100755 --- a/operator-precedence/update.sh +++ b/operator-precedence/update.sh @@ -3,7 +3,7 @@ cd "$(dirname "$0")/vendor" for file in Zeon.js zeparser/Tokenizer.js zeparser/ZeParser.js; do - curl -O "https://raw.github.com/qfox/Zeon/master/$file" + curl -O "https://raw.githubusercontent.com/qfox/Zeon/master/$file" done cat Tokenizer.js ZeParser.js Zeon.js ../eff.js > ../all.js.tmp diff --git a/punycode/README.md b/punycode/README.md index bb5bbf6..37a0523 100644 --- a/punycode/README.md +++ b/punycode/README.md @@ -1,7 +1,7 @@ -# [Mothereffing Punycode](http://mothereff.in/punycode) +# [Punycode](https://mothereff.in/punycode) An internationalized domain name (IDN) is an Internet domain name that contains non-ASCII characters, such as a language-specific script or alphabet, such as Arabic, Chinese, Russian, Hindi or the Latin alphabet-based characters with diacritics, such as French. These domain names are stored in the Domain Name System as ASCII strings using Punycode transcription. -This is a tool that uses [Punycode.js](http://mths.be/punycode) to convert domain names between Unicode and Punycode (ASCII). +This is a tool that uses [Punycode.js](https://mths.be/punycode) to convert domain names between Unicode and Punycode (ASCII). -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/punycode/eff.js b/punycode/eff.js index b4ae663..4b631ef 100644 --- a/punycode/eff.js +++ b/punycode/eff.js @@ -4,7 +4,7 @@ encoded = document.getElementById('encoded'), permalink = document.getElementById('permalink'), invalid = document.getElementById('invalid'), - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -58,7 +58,7 @@ } }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput decoded.onkeyup = encoded.onkeyup = update; decoded.oninput = encoded.oninput = function() { decoded.onkeyup = encoded.onkeyup = null; diff --git a/punycode/index.html b/punycode/index.html index 2ac5c0f..2ac956b 100644 --- a/punycode/index.html +++ b/punycode/index.html @@ -9,6 +9,6 @@

Punycode domain name converter

mañana.com encodes to xn--maana-pta.com.

That’s not a valid Punycode domain name. -

+ \ No newline at end of file diff --git a/punycode/vendor/punycode.js b/punycode/vendor/punycode.js index 8a95955..a61890c 100644 --- a/punycode/vendor/punycode.js +++ b/punycode/vendor/punycode.js @@ -1,4 +1,4 @@ -/*! http://mths.be/punycode v1.2.3 by @mathias */ +/*! https://mths.be/punycode v1.2.3 by @mathias */ ;(function(root) { /** Detect free variables */ @@ -98,7 +98,7 @@ * UCS-2 exposes as separate characters) into a single code point, * matching UTF-16. * @see `punycode.ucs2.encode` - * @see + * @see * @memberOf punycode.ucs2 * @name decode * @param {String} string The Unicode input string (UCS-2). @@ -467,7 +467,7 @@ /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. - * @see + * @see * @memberOf punycode * @type Object */ diff --git a/punycode/vendor/update.sh b/punycode/vendor/update.sh index 95183c3..a86f92b 100755 --- a/punycode/vendor/update.sh +++ b/punycode/vendor/update.sh @@ -2,7 +2,7 @@ cd "$(dirname "${BASH_SOURCE}")" -curl -# "https://raw.github.com/bestiejs/punycode.js/master/punycode.js" > "punycode.js" +curl -# "https://raw.githubusercontent.com/bestiejs/punycode.js/master/punycode.js" > "punycode.js" cat "punycode.js" "../eff.js" > "/tmp/punycode.js" echo "Copying concatenated JS to pasteboard..." diff --git a/q/README.md b/q/README.md index da6ea14..215aaf6 100644 --- a/q/README.md +++ b/q/README.md @@ -1,5 +1,5 @@ -# [`Q` encoder/decoder](http://mothereff.in/q) +# [`Q` encoder/decoder](https://mothereff.in/q) -This tool can be used to encode/decode any text using the `Q` encoding. It uses [_q-encoding](http://mths.be/q) under the hood. +This tool can be used to encode/decode any text using the `Q` encoding. It uses [_q-encoding](https://mths.be/q) under the hood. -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/q/eff.js b/q/eff.js index 7fcfc12..a31d797 100644 --- a/q/eff.js +++ b/q/eff.js @@ -4,7 +4,7 @@ var decoded = textareas[0]; var encoded = textareas[1]; var permalink = document.getElementById('permalink'); - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date; var storage; @@ -39,7 +39,7 @@ storage && (storage.q = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput decoded.onkeyup = encoded.onkeyup = update; decoded.oninput = encoded.oninput = function() { decoded.onkeyup = encoded.onkeyup = null; diff --git a/q/index.html b/q/index.html index 05833b3..9018dfd 100644 --- a/q/index.html +++ b/q/index.html @@ -12,8 +12,8 @@

Decoded:

Encoded: ()

About this tool

-

This tool uses q-encoding and utf8.js to do all the encoding/decoding. -

+

This tool uses q-encoding and utf8.js to do all the encoding/decoding. +

diff --git a/q/vendor/q.js b/q/vendor/q.js index ac75f53..59e5171 100644 --- a/q/vendor/q.js +++ b/q/vendor/q.js @@ -1,4 +1,4 @@ -/*! http://mths.be/q v0.1.1 by @mathias | MIT license */ +/*! https://mths.be/q v0.1.1 by @mathias | MIT license */ ;(function(root) { // Detect free variables `exports`. diff --git a/q/vendor/utf8.js b/q/vendor/utf8.js index be74021..1560c43 100644 --- a/q/vendor/utf8.js +++ b/q/vendor/utf8.js @@ -1,4 +1,4 @@ -/*! http://mths.be/utf8js v2.0.0 by @mathias */ +/*! https://mths.be/utf8js v2.0.0 by @mathias */ ;(function(root) { // Detect free variables `exports` @@ -19,7 +19,7 @@ var stringFromCharCode = String.fromCharCode; - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2decode(string) { var output = []; var counter = 0; @@ -46,7 +46,7 @@ return output; } - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2encode(array) { var length = array.length; var index = -1; diff --git a/quoted-printable/README.md b/quoted-printable/README.md index 799d0cf..418344b 100644 --- a/quoted-printable/README.md +++ b/quoted-printable/README.md @@ -1,5 +1,5 @@ -# [`Quoted-Printable` encoder/decoder](http://mothereff.in/quoted-printable) +# [`Quoted-Printable` encoder/decoder](https://mothereff.in/quoted-printable) -This tool can be used to encode/decode any text using the `Quoted-Printable` content transfer encoding. It uses [_quoted-printable_](http://mths.be/quoted-printable) under the hood. +This tool can be used to encode/decode any text using the `Quoted-Printable` content transfer encoding. It uses [_quoted-printable_](https://mths.be/quoted-printable) under the hood. -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/quoted-printable/eff.js b/quoted-printable/eff.js index e6ac261..8ef7605 100644 --- a/quoted-printable/eff.js +++ b/quoted-printable/eff.js @@ -4,7 +4,7 @@ var decoded = textareas[0]; var encoded = textareas[1]; var permalink = document.getElementById('permalink'); - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date; var storage; @@ -39,7 +39,7 @@ storage && (storage.quotedPrintable = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput decoded.onkeyup = encoded.onkeyup = update; decoded.oninput = encoded.oninput = function() { decoded.onkeyup = encoded.onkeyup = null; diff --git a/quoted-printable/index.html b/quoted-printable/index.html index 2e9d7fc..a9b9823 100644 --- a/quoted-printable/index.html +++ b/quoted-printable/index.html @@ -13,8 +13,8 @@

Encoded: (If you believe that truth=3Dbeauty, then surely mathematics is the most bea= utiful branch of philosophy.

About this tool

-

This tool uses quoted-printable and utf8.js to do all the encoding/decoding. -

+

This tool uses quoted-printable and utf8.js to do all the encoding/decoding. +

diff --git a/quoted-printable/vendor/quoted-printable.js b/quoted-printable/vendor/quoted-printable.js index 65ffeb4..a63fed4 100644 --- a/quoted-printable/vendor/quoted-printable.js +++ b/quoted-printable/vendor/quoted-printable.js @@ -1,4 +1,4 @@ -/*! http://mths.be/quoted-printable v0.2.1 by @mathias | MIT license */ +/*! https://mths.be/quoted-printable v0.2.1 by @mathias | MIT license */ ;(function(root) { // Detect free variables `exports`. diff --git a/quoted-printable/vendor/utf8.js b/quoted-printable/vendor/utf8.js index be74021..1560c43 100644 --- a/quoted-printable/vendor/utf8.js +++ b/quoted-printable/vendor/utf8.js @@ -1,4 +1,4 @@ -/*! http://mths.be/utf8js v2.0.0 by @mathias */ +/*! https://mths.be/utf8js v2.0.0 by @mathias */ ;(function(root) { // Detect free variables `exports` @@ -19,7 +19,7 @@ var stringFromCharCode = String.fromCharCode; - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2decode(string) { var output = []; var counter = 0; @@ -46,7 +46,7 @@ return output; } - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2encode(array) { var length = array.length; var index = -1; diff --git a/regexpu/README.md b/regexpu/README.md index 058607d..c64aee7 100644 --- a/regexpu/README.md +++ b/regexpu/README.md @@ -1,5 +1,5 @@ # [ES6 Unicode regular expression transpiler](https://mothereff.in/regexpu) -This tool uses [_regexpu_](http://mths.be/regexpu) to transpile [ES6 Unicode regular expressions (with a `u` flag)](https://mathiasbynens.be/notes/es6-unicode-regex) to equivalent ES5. +This tool uses [_regexpu_](https://mths.be/regexpu) to transpile [ES6 Unicode regular expressions (with a `u` flag)](https://mathiasbynens.be/notes/es6-unicode-regex) to equivalent ES5. Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/regexpu/index.html b/regexpu/index.html index 704c08c..7e524cf 100644 --- a/regexpu/index.html +++ b/regexpu/index.html @@ -18,7 +18,7 @@

Transpiled to ES5: (run code,

About this tool

-

This tool uses regexpu to transpile ES6 Unicode regular expressions (with a u flag) to equivalent ES5. +

This tool uses regexpu to transpile ES6 Unicode regular expressions (with a u flag) to equivalent ES5.

diff --git a/reverse-string/README.md b/reverse-string/README.md index 36e746e..43de3fb 100644 --- a/reverse-string/README.md +++ b/reverse-string/README.md @@ -1,5 +1,5 @@ -# [String reverser](http://mothereff.in/reverse-string) +# [String reverser](https://mothereff.in/reverse-string) -This tool will automatically reverse any string you enter, using [Esrever](http://mths.be/esrever). +This tool will automatically reverse any string you enter, using [Esrever](https://mths.be/esrever). -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/reverse-string/eff.js b/reverse-string/eff.js index 6b0da6d..d58ed89 100644 --- a/reverse-string/eff.js +++ b/reverse-string/eff.js @@ -5,7 +5,7 @@ pre = document.getElementsByTagName('pre')[0], output = document.getElementById('output'), permalink = document.getElementById('permalink'), - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -48,7 +48,7 @@ permalink.hash = encode(value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput textarea.onkeyup = update; textarea.oninput = function() { textarea.onkeyup = null; diff --git a/reverse-string/index.html b/reverse-string/index.html index 851bee2..2c89dc6 100644 --- a/reverse-string/index.html +++ b/reverse-string/index.html @@ -12,7 +12,7 @@

Input

Reversed result ()

I put my thang down, flip it, and reverse it.

About this tool

-

This tool uses Esrever to reverse any string you enter. -

+

This tool uses Esrever to reverse any string you enter. +

diff --git a/reverse-string/vendor/esrever.js b/reverse-string/vendor/esrever.js index ea6aaed..c61e82b 100644 --- a/reverse-string/vendor/esrever.js +++ b/reverse-string/vendor/esrever.js @@ -1,4 +1,4 @@ -/*! http://mths.be/esrever v0.1.0 by @mathias */ +/*! https://mths.be/esrever v0.1.0 by @mathias */ ;(function(root) { // Detect free variables `exports` diff --git a/reverse-string/vendor/update.sh b/reverse-string/vendor/update.sh index 2d9624e..afe175c 100755 --- a/reverse-string/vendor/update.sh +++ b/reverse-string/vendor/update.sh @@ -2,7 +2,7 @@ cd "$(dirname "${BASH_SOURCE}")" -curl -# "https://raw.github.com/mathiasbynens/esrever/master/esrever.js" > esrever.js +curl -# "https://raw.githubusercontent.com/mathiasbynens/esrever/master/esrever.js" > esrever.js cat "esrever.js" "../eff.js" > "/tmp/reverse-string.js" echo "Copying concatenated JS to pasteboard..." diff --git a/twitalics/README.md b/twitalics/README.md index 247f600..1af072b 100644 --- a/twitalics/README.md +++ b/twitalics/README.md @@ -1,5 +1,5 @@ -# [Mothereffing Twitalics](http://mothereff.in/twitalics) +# [Twitalics](https://mothereff.in/twitalics) Make text look italic or bold using nothing but raw Unicode characters. -Made by [Mathias Bynens](http://mathiasbynens.be/). \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/twitalics/eff.js b/twitalics/eff.js index a317361..5785245 100644 --- a/twitalics/eff.js +++ b/twitalics/eff.js @@ -10,7 +10,7 @@ italic = checkboxes[3], bold = checkboxes[4], permalink = document.getElementById('permalink'), - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -134,7 +134,7 @@ permalink.hash = encode(textarea.value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput textarea.onkeyup = script.onchange = fraktur.onchange = serif.onchange = italic.onchange = bold.onchange = update; textarea.oninput = function() { textarea.onkeyup = null; diff --git a/twitalics/index.html b/twitalics/index.html index a0f10dd..e6fe7a9 100644 --- a/twitalics/index.html +++ b/twitalics/index.html @@ -20,5 +20,5 @@

Make text look italic or bold using nothing but raw Unicode characters

test

This is pretty much the only way to use text formatting on Twitter. Note that using these crazy characters is a terrible idea for accessibility. They may not even show up at all, depending on your operating system and the fonts you have installed. Don’t use it for anything important. (@Wilto, you’re good.) -

+ \ No newline at end of file diff --git a/unquoted-attributes/README.md b/unquoted-attributes/README.md index c605ffb..35c4ffa 100644 --- a/unquoted-attributes/README.md +++ b/unquoted-attributes/README.md @@ -1,5 +1,5 @@ -# [Mothereffing unquoted HTML attribute values](http://mothereff.in/unquoted-attributes) +# [Unquoted HTML attribute values](https://mothereff.in/unquoted-attributes) -See for the full explanation. +See for the full explanation. -Made by [Mathias Bynens](http://mathiasbynens.be/) for use in [Paul Irish](http://paulirish.com/)’s #txjs talk. \ No newline at end of file +Made by [Mathias Bynens](https://mathiasbynens.be/) for use in [Paul Irish](http://paulirish.com/)’s #txjs talk. diff --git a/unquoted-attributes/eff.js b/unquoted-attributes/eff.js index 4dac3b7..a8d2f13 100644 --- a/unquoted-attributes/eff.js +++ b/unquoted-attributes/eff.js @@ -28,7 +28,7 @@ showHide = function(el, bool) { el.style.display = bool ? 'none' : 'inline'; }, - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -69,7 +69,7 @@ storage && (storage.unquotedAttributes = value); } - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput input.onkeydown = update; input.oninput = function() { this.onkeydown = null; @@ -97,7 +97,7 @@ }(this, document)); -// Optimized Google Analytics snippet: http://mths.be/aab */ +// Optimized Google Analytics snippet: https://mths.be/aab */ window._gaq = [['_setAccount', 'UA-6065217-60'], ['_trackPageview']]; (function(d, t) { var g = d.createElement(t), diff --git a/unquoted-attributes/index.html b/unquoted-attributes/index.html index 9f968bf..900e41f 100644 --- a/unquoted-attributes/index.html +++ b/unquoted-attributes/index.html @@ -1,12 +1,12 @@ -Mothereffing unquoted attribute value validator +Unquoted attribute value validator
-

Mothereffing unquoted attribute value validator

+

Unquoted attribute value validator

“Can I use <a href=foo></a> and a[href=foo] {} or does it need quotes?”

@@ -15,7 +15,7 @@

“Can I use <a href=foo></a> and a[href
<a href=mailto:foo@example.org?subject=bar></a>

In CSS, that’s an invalid unquoted attribute value:

<style>
a[href=mailto:foo@example.org?subject=bar] {
background: hotpink;
}
</style>
-

To quote “Unquoted attribute values in HTML and CSS”: -

A valid unquoted attribute value in HTML is any string of text that is not the empty string and that doesn’t contain spaces, tabs, line feeds, form feeds, carriage returns, ", ', `, =, <, or >.

A valid unquoted attribute value in CSS is any string of text that is not the empty string, consists of escaped characters and/or characters matching /[-_\u00A0-\u10FFFF]/ entirely, and doesn’t start with a digit or two hyphens or a hyphen followed by a digit.

- - \ No newline at end of file +

To quote “Unquoted attribute values in HTML and CSS”: +

A valid unquoted attribute value in HTML is any string of text that is not the empty string and that doesn’t contain spaces, tabs, line feeds, form feeds, carriage returns, ", ', `, =, <, or >.

A valid unquoted attribute value in CSS is any string of text that is not the empty string, consists of escaped characters and/or characters matching /[-_\u00A0-\u10FFFF]/ entirely, and doesn’t start with a digit or two hyphens or a hyphen followed by a digit.

+ + diff --git a/url/README.md b/url/README.md index b29fcb4..9afb755 100644 --- a/url/README.md +++ b/url/README.md @@ -1,5 +1,5 @@ -# [URL encoder/decoder](http://mothereff.in/url) +# [URL encoder/decoder](https://mothereff.in/url) Convert any Unicode string to its URL-encoded form, and the other way around. -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/url/eff.js b/url/eff.js index 4af1d0c..2225499 100644 --- a/url/eff.js +++ b/url/eff.js @@ -4,7 +4,7 @@ var decoded = textareas[0]; var encoded = textareas[1]; var permalink = document.getElementById('permalink'); - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern var storage = (function() { var uid = new Date; var storage; @@ -51,7 +51,7 @@ storage && (storage.urlEncoded = decodedString); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput decoded.onkeyup = encoded.onkeyup = update; decoded.oninput = encoded.oninput = function() { decoded.onkeyup = encoded.onkeyup = null; diff --git a/url/index.html b/url/index.html index 7cbcba2..3a59918 100644 --- a/url/index.html +++ b/url/index.html @@ -11,5 +11,5 @@

URL-decoded ( + diff --git a/utf-8/README.md b/utf-8/README.md index ba375fe..d133cbe 100644 --- a/utf-8/README.md +++ b/utf-8/README.md @@ -1,5 +1,5 @@ -# [UTF-8 encoder/decoder](http://mothereff.in/utf-8) +# [UTF-8 encoder/decoder](https://mothereff.in/utf-8) -This tool automatically encodes any string you enter. It can also decode valid UTF-8 input. It uses [utf8.js](http://mths.be/utf8js) under the hood. +This tool automatically encodes any string you enter. It can also decode valid UTF-8 input. It uses [utf8.js](https://mths.be/utf8js) under the hood. -Made by [Mathias Bynens](http://mathiasbynens.be/). +Made by [Mathias Bynens](https://mathiasbynens.be/). diff --git a/utf-8/eff.js b/utf-8/eff.js index 478af98..e8bc3bc 100644 --- a/utf-8/eff.js +++ b/utf-8/eff.js @@ -4,7 +4,7 @@ decoded = textareas[0], encoded = textareas[1], permalink = document.getElementById('permalink'), - // http://mathiasbynens.be/notes/localstorage-pattern + // https://mathiasbynens.be/notes/localstorage-pattern storage = (function() { var uid = new Date, storage, @@ -59,7 +59,7 @@ storage && (storage.utf8 = value); }; - // http://mathiasbynens.be/notes/oninput + // https://mathiasbynens.be/notes/oninput decoded.onkeyup = encoded.onkeyup = update; decoded.oninput = encoded.oninput = function() { decoded.onkeyup = encoded.onkeyup = null; diff --git a/utf-8/index.html b/utf-8/index.html index 050d503..5007487 100644 --- a/utf-8/index.html +++ b/utf-8/index.html @@ -12,7 +12,7 @@

UTF-8-decoded:

UTF-8-encoded: ()

About this tool

-

This tool uses utf8.js to UTF-8-encode any string you enter in the ‘decoded’ field, or to decode any UTF-8-encoded string you enter in the ‘encoded’ field. -

+

This tool uses utf8.js to UTF-8-encode any string you enter in the ‘decoded’ field, or to decode any UTF-8-encoded string you enter in the ‘encoded’ field. +

diff --git a/utf-8/vendor/update.sh b/utf-8/vendor/update.sh index b5f0141..1fd7b9f 100755 --- a/utf-8/vendor/update.sh +++ b/utf-8/vendor/update.sh @@ -2,7 +2,7 @@ cd "$(dirname "${BASH_SOURCE}")" -curl -# "https://raw.github.com/mathiasbynens/utf8.js/master/utf8.js" > utf8.js +curl -# "https://raw.githubusercontent.com/mathiasbynens/utf8.js/master/utf8.js" > utf8.js cat "utf8.js" "../eff.js" > "/tmp/ut-eff-8.js" echo "Copying concatenated JS to pasteboard..." diff --git a/utf-8/vendor/utf8.js b/utf-8/vendor/utf8.js index be74021..1560c43 100644 --- a/utf-8/vendor/utf8.js +++ b/utf-8/vendor/utf8.js @@ -1,4 +1,4 @@ -/*! http://mths.be/utf8js v2.0.0 by @mathias */ +/*! https://mths.be/utf8js v2.0.0 by @mathias */ ;(function(root) { // Detect free variables `exports` @@ -19,7 +19,7 @@ var stringFromCharCode = String.fromCharCode; - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2decode(string) { var output = []; var counter = 0; @@ -46,7 +46,7 @@ return output; } - // Taken from http://mths.be/punycode + // Taken from https://mths.be/punycode function ucs2encode(array) { var length = array.length; var index = -1;