Comments (5)
我也遇到这个了,没法解决
from userjs.
我也遇到了+1
[Report Only] Refused to load the stylesheet 'https://at.alicdn.com/t/font_438759_d66lkuno6c9.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' *.hdslb.com static.geetest.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.
[Report Only] Refused to load the stylesheet 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' *.hdslb.com static.geetest.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.
from userjs.
我也遇到了+1 [Report Only] Refused to load the stylesheet 'https://at.alicdn.com/t/font_438759_d66lkuno6c9.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' *.hdslb.com static.geetest.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.
[Report Only] Refused to load the stylesheet 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' *.hdslb.com static.geetest.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.
目前定位问题时发现了一个可能的情况,还需要协助确定。
目前发现一种出现问题的情况:在配合某个版本的解除区域限制脚本,并设置“出差.xyz”或类似中文字符作为域名时会导致此脚本出现错误,哪怕关闭脚本也无法解决,但是将cookie完全清空后刷新页面重新登陆后可以使用。
因为cookie中包含中文字符,而读取时没有进行处理,从而导致了问题。但是是否所有分组问题都与此有关还需要确认。
协助解决方式:
- 尝试清空cookie、刷新页面、重新登陆,然后查看问题是否解决。
- 尝试打开脚本调试信息输出,然后反馈调试信息中输出的错误。
调试信息开启方式:
编辑脚本第82行:
UserJS/scripts/ckylin-bilibili-unfollow.user.js
Lines 82 to 83 in d4f4b7f
将debug
属性改为true
(应该变成 debug: true,
),保存脚本,随后重复出现问题时的操作,按F12,截取控制台中所有[FoMan]
开头的行并发送到这里。(这之中可能包含个人隐私数据,你可以选择打码或任意其他的文件传送方式)。
已知错误"与某个版本的解除区域限制脚本一起使用并使用中文域名作为服务器地址"的错误提示是这样的:
[FoMan] Failed fetch self info: error found TypeError: Failed to construct 'Request': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point.
at getRequest (userscript.html?...9e:1091:32)
at getCurrSubStat (userscript.html?...9e:1256:49)
at getFollowings (userscript.html?...9e:1682:32)
如果有任何其他不同错误请反馈,谢谢!
from userjs.
检查了一下,我的确实是设置了中文域名的原因,改完就好了
[FoMan] TypeError: Failed to construct 'Request': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point.
at getRequest (userscript.html?name=%255BBilibili%255D%2520%25E5%2585%25B3%25E6%25B3%25A8%25E7%25AE%25A1%25E7%2590%2586%25E5%2599%25A8.user.js&id=d907f72c-368c-41a5-99ea-bcc21b537289:1091:32)
at cacheGroupList (userscript.html?name=%255BBilibili%255D%2520%25E5%2585%25B3%25E6%25B3%25A8%25E7%25AE%25A1%25E7%2590%2586%25E5%2599%25A8.user.js&id=d907f72c-368c-41a5-99ea-bcc21b537289:1105:49)
at createMainWindow (userscript.html?name=%255BBilibili%255D%2520%25E5%2585%25B3%25E6%25B3%25A8%25E7%25AE%25A1%25E7%2590%2586%25E5%2599%25A8.user.js&id=d907f72c-368c-41a5-99ea-bcc21b537289:3560:21)
from userjs.
检查了一下,我的确实是设置了中文域名的原因,改完就好了
[FoMan] TypeError: Failed to construct 'Request': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point. at getRequest (userscript.html?name=%255BBilibili%255D%2520%25E5%2585%25B3%25E6%25B3%25A8%25E7%25AE%25A1%25E7%2590%2586%25E5%2599%25A8.user.js&id=d907f72c-368c-41a5-99ea-bcc21b537289:1091:32) at cacheGroupList (userscript.html?name=%255BBilibili%255D%2520%25E5%2585%25B3%25E6%25B3%25A8%25E7%25AE%25A1%25E7%2590%2586%25E5%2599%25A8.user.js&id=d907f72c-368c-41a5-99ea-bcc21b537289:1105:49) at createMainWindow (userscript.html?name=%255BBilibili%255D%2520%25E5%2585%25B3%25E6%25B3%25A8%25E7%25AE%25A1%25E7%2590%2586%25E5%2599%25A8.user.js&id=d907f72c-368c-41a5-99ea-bcc21b537289:3560:21)
感谢你的确认,我这两天研究一下这个问题怎么解决。之后修复后如果其他人也没有类似的问题的话就可以证明这个问题解决了。
from userjs.
Related Issues (20)
- [IDEA] ShowAV脚本显示功能请求 HOT 1
- showid: 排名间隔bug
- showid: 间隔样式实现重构
- showid: 高级复制里 av 号的「av」不见了。
- showid:视频 AV 号和高级复制 和 视频 BV 号和高级复制 组件的点击复制都失效了。
- showid: 适配HEVC格式的播放器(无法捕获自动跳P) HOT 1
- [rotate] 转为通用脚本
- [关注管理器] feat: 取关间隔
- [关注管理器] impr: 重构 HOT 1
- [IDEA] ShowAV脚本显示功能请求 HOT 1
- 兼容新版本播放器
- [IDEA] [关注管理器] 按照最后投稿时间排序或筛选 HOT 2
- [FoMan] 新版筛选功能 HOT 1
- [Bug] ShowAV: 新版本信息条适配/无法隐藏投稿时间 HOT 2
- [Bug] ShowAV脚本 HOT 6
- [IDEA] ShowAV脚本显示警告 HOT 1
- [IDEA] 按粉丝数量和最近投稿时间排序 HOT 13
- [Bug] 基于浏览器判定载入点的脚本在 3.x 版本播放器上失效 HOT 3
- [SNI] 番剧区禁用视频内显
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userjs.