noe132
noe132
Atom : 1.22.1 Electron: 1.6.15 Chrome : 56.0.2924.87 Node : 7.4.0 atom-ternjs: 0.18.3 win10 x64 same here
2 space indentation is quite useful for many people like me I'm coding with 2 space indentation and I also want markdown to be 2 space too
So if there is exact type here, I think by doing something similar to what exact type does, instead of striping additional properties, make a slightly adjustment to the striping...
Hey, since number enums have remapping, https://www.typescriptlang.org/docs/handbook/enums.html#reverse-mappings I think it's essential to check if the key is the remapped one. ```typescript enum E { A = 1 } // compiles...
不好意思,看了一眼后差点忘记了这个事了~ 我手上暂时没有ios/ipados设备,暂时也没法排查问题。你手上有macbook吗,能看看macos上safari也有这个问题吗?如果也有这个问题,我看看可以找朋友借台设备看看,mac可能好弄一点
好,哪天我有机会有设备了就看一下这个问题
@omnjpa27516 其实这个脚本最小化压缩后只有300多kb的,可以看最后一个压缩后的版本 [`v4.9.5`](https://github.com/Firefox-Pro-Coding/iciba-translate-userscript/releases/tag/v4.9.5) 之所以不压缩是因为greasyfork[不允许压缩](https://greasyfork.org/zh-CN/help/code-rules#:~:text=%E6%8F%90%E4%BA%A4%E5%88%B0%20Greasy%20Fork%20%E7%9A%84%E4%BB%A3%E7%A0%81%E4%B8%8D%E5%BE%97%E6%B7%B7%E6%B7%86%E6%88%96%E6%9C%80%E5%B0%8F%E5%8C%96)。 代码本身已经做到十分紧凑了,除了一些基础第三方库和 polyfill,基本不包含其他第三方组件库。代码可以说几乎没有多余的东西。 因为几乎所有的用户都是从 greasyfork 安装,所以不太可能上传压缩后的版本到 greasyfork。如果你懂一些相关的知识可以自己编译一个压缩后的版本,大概流程是 安装 node, 用 npm 安装 yarn,把代码 clone 下来,运行 yarn install 安装依赖,然后 注释[这个文件](https://github.com/Firefox-Pro-Coding/iciba-translate-userscript/blob/a93b6bb61ead456574c946a46f86eff213b66fee/build/config/webpack/webpack.prod.conf.js#L13)第13行,再取消掉14-22行的注释,运行 `yarn build` 就会在 `dist` 文件夹打包生成压缩后的文件。我这里把目前最新版本 4.11.9 打包了一个压缩后的版本 [iciba.user.zip](https://github.com/Firefox-Pro-Coding/iciba-translate-userscript/files/8857886/iciba.user.zip),这个打包出来是...
@uccamnj 明白。下次更新会改一下
@Cullwen 这种功能chrome自带的翻译就足够了,而且也有很多第三方扩展有这样的功能。这个脚本主要提供的是划词翻译查词。