Greasy Fork is available in English.
恢复评论区翻页功能。
是GM_addStyle
报错吗?
我原以为脚本管理员提供的API会智能判断<head>
节点存不存在的,想省些代码。而脚本正巧需要unsafeWindow
作为第二个上下文可以用这些API。
这样的话我还是手动添加css吧。
是GM_addStyle报错吗?
我原以为脚本管理员提供的API会智能判断节点存不存在的,想省些代码。而脚本正巧需要unsafeWindow作为第二个上下文可以用这些API。
这样的话我还是手动添加css吧。
应该是的,以下是截取出来的报错
TypeError: head is undefined
createStyleElement webpack://risk-control-captcha/./node_modules/vue-style-loader/lib/addStylesClient.js?:119
addStyle webpack://risk-control-captcha/./node_modules/vue-style-loader/lib/addStylesClient.js?:150
addStylesToDom webpack://risk-control-captcha/./node_modules/vue-style-loader/lib/addStylesClient.js?:109
addStylesClient webpack://risk-control-captcha/./node_modules/vue-style-loader/lib/addStylesClient.js?:63
<anonymous> webpack://risk-control-captcha/./src/packages/biliwordverify/Img.vue?./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options:9
./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/packages/biliwordverify/Img.vue?vue&type=style&index=0&id=6ff4d5ab&scoped=true&lang=css& moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
<anonymous> webpack://risk-control-captcha/./src/packages/biliwordverify/Img.vue?:2
./src/packages/biliwordverify/Img.vue?vue&type=style&index=0&id=6ff4d5ab&scoped=true&lang=css& moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
<anonymous> webpack://risk-control-captcha/./src/packages/biliwordverify/Img.vue?:4
vue moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
<anonymous> webpack://risk-control-captcha/./src/packages/biliwordverify/biliwordverify.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options:10
./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/packages/biliwordverify/biliwordverify.vue?vue&type=script&lang=js& moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
<anonymous> webpack://risk-control-captcha/./src/packages/biliwordverify/biliwordverify.vue?:5
./src/packages/biliwordverify/biliwordverify.vue?vue&type=script&lang=js& moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
<anonymous> webpack://risk-control-captcha/./src/packages/biliwordverify/biliwordverify.vue?:6
vue moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
<anonymous> webpack://risk-control-captcha/./src/packages/biliwordverify/index.js?:2
js moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
<anonymous> webpack://risk-control-captcha/./src/index.js?:8
js moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
__webpack_require__ moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
wr moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
VMin0a4w6w4yh moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
t moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
VMin0a4w6w4yh moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
t moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
VMin0a4w6w4yh moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
VMin0a4w6w4yh moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:7
VMin0a4w6w4yh moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:242
a moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/sandbox/injected-web.js:1
v moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/sandbox/injected-web.js:1
set moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/sandbox/injected-web.js:1
<anonymous> moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/ Bilibili 翻页评论区.user.js#2:1
c moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/sandbox/injected-web.js:1
ScriptData moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/sandbox/injected-web.js:1
onHandle moz-extension://baf83943-f221-43ab-b047-4d4a90da16af/sandbox/injected-web.js:1
c
如果使用 Violentmonkey(暴力猴)运行此脚本的话,需要将 Run-at 设置为
document-body
或更后才能运行似乎是默认情况下脚本开始跑了,
<head>
还没有加载进去...总之谢谢作者提供这么方便的脚本