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
| #!/usr/bin/env node | |
| /** | |
| * gem-book-to-pdf.js | |
| * 将任意 gem-book 生成的文档站点打印为一本 PDF | |
| * | |
| * 依赖安装: | |
| * npm install puppeteer-core pdf-lib | |
| * | |
| * 用法: | |
| * node gem-book-to-pdf.js # 默认 gemjs.org,全部语言 |
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
| [tabs-hidden] { | |
| /* 用来标签名字定位 */ | |
| position: relative; | |
| /* 将标签栏中的当前标签重新定位,并排除其他样式影响 */ | |
| #TabsToolbar { | |
| visibility: visible !important; | |
| max-height: 0 !important; | |
| overflow: hidden !important; | |
| &, |
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 VERSION = '0.0.1'; | |
| const assetsToCache = [...new Set([self.location.pathname, '/'])].map( | |
| path => self.location.origin + path, | |
| ); | |
| self.addEventListener('install', () => { | |
| self.skipWaiting(); | |
| self.caches.open(VERSION).then(cache => { | |
| cache.addAll(assetsToCache); |
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
| document.querySelector('#videoVerifyContent').remove(); | |
| async function validator() { | |
| const ocr = async url => { | |
| const { default: Tesseract } = await import( | |
| "https://dev.jspm.io/tesseract.js" | |
| ); | |
| const data = await Tesseract.recognize( | |
| url || | |
| "https://ware.cdeledu.com/cdel_ware/common/makeArithmeticCode.shtm?random=0.6212206602916508" | |
| ); |