Skip to content

Instantly share code, notes, and snippets.

@mtsgi
mtsgi / cdfd.js
Created May 12, 2020 14:07
Classroomの資料一括ダウンロードするやつ (Google Classroom Drive Files Downloader)
document.querySelectorAll('a[aria-label][data-focus-id][target=_blank]').forEach(anc => {
if(anc.getAttribute('href').search(/https?:\/\/drive\.google\.com\/open\?/) === 0)
window.open(anc.getAttribute('href').replace(/https?:\/\/drive\.google\.com\/open\?/, 'https://drive.google.com/uc?export=download&'), anc.getAttribute('href'))
})
:root {
font-family: 'Noto Sans CJK JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
code,
pre {
font-family: Consolas, Inconsolata, Menlo, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
}
@mtsgi
mtsgi / javascript.json
Last active May 4, 2020 12:21
User snippet for kit(kit apps framework v2)
{
"kit": {
"prefix": "kit",
"body": "((_pid, _app) => {\n $1\n})(pid, app);"
}
}
@mtsgi
mtsgi / ls.js
Created July 14, 2019 06:29
Local Storage Getter
const LS = q => localStorage[q]