- Ctrl Tab 切換分頁
- Ctrl Shift A 搜尋分頁 Search Tab
- Ctrl Shift B 開關書籤列
- Ctrl Shift O 書籤管理員
- 在網址列用搜尋方式開啟「書籤」「常用網頁」
- Alt Shift TCtrl Enter focus 到上一頁按鈕 >開在新分頁
- Alt DAlt Enter 開一樣的網址分頁
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 第 1 碼為 / | |
* 其餘 7 碼為 0-9 A-Z . - + | |
*/ | |
module.exports = (value) => { | |
// - 需放最後,不然要會跟 0-9 的 - 混淆 | |
const patt = /^\/[0-9A-Z.+-]{7}$/ | |
if (patt.test(value)) return null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import memoize from 'lodash/memoize' | |
function isNil (value) { | |
return value === undefined || value === null | |
} | |
function sallowCopy (obj) { | |
return Array.isArray(obj) ? [...obj] : { ...obj } | |
} | |
function toUpdateFunc (input) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
const fs = require('fs') | |
function walkDirSync (dir) { | |
return fs.readdirSync(dir).reduce((filePaths, fileName) => { | |
const filePath = path.join(dir, fileName) | |
if (fs.statSync(filePath).isDirectory()) { | |
return filePaths.concat(walkDirSync(filePath)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Go on your labels page (https://github.com/user/repo/labels) | |
Edit the following label array | |
or | |
Use this snippet to export github labels (https://gist.github.com/MoOx/93c2853fee760f42d97f) | |
and replace it | |
Paste this script in your console | |
Press Enter!! |