F9y4ng / GreasyFork-Scripts

The open source code of this project is used for userscripts (油猴脚本) for desktop browsers, including Font Rendering (Customized) (字体渲染(自用脚本)- Font Rendering.user.js), and Search Engine Assistant (优雅的搜索引擎助手 - Google & Baidu Switcher.user.js), etc.
https://f9y4ng.github.io/GreasyFork-Scripts/
GNU General Public License v3.0
1.02k stars 48 forks source link

[发现错误] 字体渲染设置时报错 #90

Closed ddvcx closed 2 years ago

ddvcx commented 2 years ago

描述错误信息 (清楚而简洁地描述了错误是什么) 字体渲染设置时报错

错误再现 (重现行为的步骤) 任何网站只要打开字体渲染设置都会报错

预期结果 (清晰明了地描述你所期待想要什么样的结果) 能正常进行设置

*浏览器信息:{"architecture":"x86","bitness":"64","brands":[{"brand":" Not A;Brand","version":"99"},{"brand":"Chromium","version":"99"},{"brand":"Google Chrome","version":"99"}],"mobile":false,"model":"","platform":"Windows","platformVersion":"10.0.0","uaFullVersion":"99.0.4844.84"} 脚本扩展信息:Violentmonkey 2.13.0 脚本版本信息:2022.05.01.1 当前访问域名:github.com 错误信息:[Fonts shadowColor]: SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.

附加信息 (在此处添加有关此问题的任何附加信息)

  1. 重装脚本无法修复错误
  2. 同台电脑,百分浏览器正常
F9y4ng commented 2 years ago

尝试将代码第19行(Greasyfork源)或第21行(Github源)

// @require  https://greasyfork.org/scripts/437214-frcolorpicker/code/frColorPicker.js?version=1045723

改为

// @require  https://greasyfork.org/scripts/437214-frcolorpicker/code/frColorPicker.js?version=1047988

然后,清空浏览器缓存后,重新尝试打开之前出错的站点,看是否还有报错?

如仍旧报错,请按 #80 的错误捕捉方式将日志打包上传至github。

F9y4ng commented 2 years ago

version 2022.05.15.1 should be fixed.