convert from hex by @shallax
This file contains hidden or 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
| aahed | |
| aalii | |
| aargh | |
| aarti | |
| abaca | |
| abaci | |
| aback | |
| abacs | |
| abaft | |
| abaka |
使用方法:新增一個書籤,把底下 javascript: ... 的程式貼到書籤的網址內,然後去你想要用的網頁,點一下書籤就會載入這些 JS 進來,你可以自己修改想要載入的 JS 清單。
javascript: (async () => { const loadScript = async url => new Promise((resolve, reject) => { const script = document.createElement('script'); script.src = url; script.onload = () => resolve(); script.onerror = () => reject(new Error(`Failed to load script: ${url}`)); document.head.appendChild(script); }); console.log(`js-snippets.js started`); const LIBRARIES_URL = 'https://gist.githubusercontent.com/taichunmin/5171d5c7de23d8270c1f03be75593713/raw/libraries.json'; const libraries = await (await fetch(`${LIBRARIES_URL}?t=${Date.now()}`)).json(); await Promise.all(libraries.map(loadScript)); const dayjsPlugins = _.chain(_.keys(window)).filter(k => _.startsWith(k, 'dayjs_plugin_')).value(); console.log(`found ${dayjsPlugins.length} plugins of dayjs`); for (const plugin of dayjsPlugins) window.dayjs.extend(window[plugin]); })()
This file contains hidden or 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
| <% function gaScreenView (lineId, name) { | |
| return `https://www.google-analytics.com/collect?${Qs.stringify({ | |
| an: 'My App', | |
| cd: name, // 畫面名稱, | |
| cid: lineId.replace(/^U(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})$/, '$1-$2-$3-$4-$5'), // client id | |
| ds: 'app', // 資料來源,填寫為 app | |
| t: 'screenview', | |
| tid: 'UA-xxxxxxxxx-1', // GA 追蹤代碼 | |
| uid: lineId, // LINE userId | |
| ul: 'zh-tw', // locale |
This file contains hidden or 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
| { | |
| "type": "bubble", | |
| "hero": { | |
| "type": "image", | |
| "url": "https://scdn.line-apps.com/n/channel_devcenter/img/fx/01_1_cafe.png", | |
| "size": "full", | |
| "aspectRatio": "20:13", | |
| "aspectMode": "cover" | |
| }, | |
| "body": { |
This file contains hidden or 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
| MIT License | |
| Copyright (c) 2020 戴均民 | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This file contains hidden or 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
| { | |
| "basics": { | |
| "name": "戴均民 (Chun-Min Tai)", | |
| "label": "資深後端工程師 | LINE API 專家", | |
| "image": "https://www.gravatar.com/avatar/8d9b432d861e4ac0e40954a800ae90a1?s=2048", | |
| "email": "[email protected]", | |
| "phone": "0932859222", | |
| "birthday": "1991-07-30", | |
| "url": "https://taichunmin.idv.tw", | |
| "summary": "擁有 10+ 年經驗的資深後端工程師,專精於 Node.js 生態系。主導設計並實作電動車 IoT 平台與十萬用戶級的 LINE 官方帳號,同時也是 LINE 官方認證的 API 專家。開源貢獻者,GitHub 專案累計 500+ stars,技術文章 50+ 篇。Web 與嵌入式整合專家,實現瀏覽器直控 RFID/NFC 設備。", |
This file contains hidden or 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 axios = require('axios') | |
| exports.helloWorld = async (req, res) => { | |
| res.set('Access-Control-Allow-Origin', '*') | |
| res.set('Access-Control-Allow-Credentials', 'true') | |
| if (req.method === 'OPTIONS') { | |
| // Send response to OPTIONS requests | |
| res.set('Access-Control-Allow-Methods', 'POST, OPTIONS') | |
| res.set('Access-Control-Allow-Headers', 'authorization,content-type') |
This file contains hidden or 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
| // ==UserScript== | |
| // @name 爐石牌組代碼預覽 | |
| // @version 1.1.14.6 | |
| // @description 預覽文章中牌組代碼的牌組內容 | |
| // @author starfi5h(海星) | |
| // @namespace https://home.gamer.com.tw/starfi5h | |
| // @include https://forum.gamer.com.tw/C.php?*bsn=24044* | |
| // @include https://forum.gamer.com.tw/G2.php?*bsn=24044* | |
| // @match https://forum.gamer.com.tw/C.php?*bsn=60076*&snA=4483814* | |
| // @include https://m.gamer.com.tw/forum/C.php?bsn=24044* |
NewerOlder
