我需要安装 react-hls-player npm 包来启动 m3u8 流,但是当我安装它时,它给了我这个错误。
当我在 Wordpress 中为我的插件运行我的 js 脚本时。页面冻结、超时并返回 SIGILL 错误。我在 web 开发工具中看不到任何错误,页面只是冻结。
我使用货物安装了 minidump_stackwalk。
sudo apt install cargo
cargo install minidump-stackwalk
然后我在调试模式下运行 Chrome,
google-chrome --enable-logging --v=1
我通过 minidump_stackwalk 运行崩溃报告来解释转储文件。它给了我没有用的 chrome 库堆栈跟踪。
minidump_stackwalk ~/.config/google-chrome/'Crash Reports'/07*.dmp
当我运行这个 bash 命令(在 linux 上)时,我得到的 chrome 调试日志更有用一些。
tail -n 100 ~/.config/google-chrome/chrome_debug.log
这是我的 chrome 调试日志的输出。
[140960:1:0721/122133.762869:ERROR:v8_initializer.cc(688)] V8 javascript OOM: (Reached heap limit).
[133755:134289:0721/122133.997566:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x34740a187720
[133755:134289:0721/122133.997588:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x34740a186ca0
[133755:134289:0721/122133.997593:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x3474091aff00
[133755:134289:0721/122133.997597:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x347409b3e760
[133755:134289:0721/122133.997601:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x34740a186f40
[133755:134289:0721/122133.997605:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x347409b3e4c0
[133755:134289:0721/122133.997609:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x34740a186e60
[133755:134289:0721/122133.997613:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x3474078d6a00
[133755:134289:0721/122133.997617:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x34740a1865a0
[133755:134289:0721/122133.997621:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x34740a185f80
[133755:134289:0721/122133.997840:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x347409b3ee60
[133755:134289:0721/122133.997850:VERBOSE1:bus.cc(708)] Requested to remove an unknown filter function: 1 with associated data: 0x347409b3ebc0
[133755:133755:0721/122133.999826:INFO:render_frame_host_impl.cc(11505)] RenderFrameHostImpl::MaybeGenerateCrashReport url = https://staging.rebelcitytour.com/test-maps/, status = 3, exit_code = 132
看起来 JS 对象出现段错误或内存不足。可能是无限循环。
问题是,我不知道要看哪个 JS 对象。就像我说的,chrome web 开发工具与网页一起崩溃。我得到的只是一个 SIGILL 错误和崩溃报告。
我试过逐块调试代码,但行为似乎有点不稳定。有时它会与注释掉的代码一起工作,有时则不会。我每次都清除缓存。
任何人都可以帮忙吗?
前言:我是业余爱好者,只是想制作自己的js脚本来让自己更轻松地完成一些任务。
我正在使用和学习JavaScript。
我尝试过的代码:
window.history.go(-1);
history.back
我想做的事:
制作一个脚本,当它遇到元数据中声明的某个页面时返回一个页面@match
。
发生了什么: 我在 Chrome DevTool 控制台上进行了测试,它工作正常。页面返回,一切正常。我将它包含在 Tampermonkey 脚本中,但它似乎不起作用。就好像它被完全忽略了一样。元数据似乎工作正常,因为它与我用于另一个脚本的元数据相同,而且它们工作正常。
我的问题:
我怎样才能使这项工作?
整个脚本:
// @name MFP reload 1.0
// @namespace http://tampermonkey.net/
// @version 1
// @description reload when encountering error
// @author Miso
// @match https://www.myfitnesspal.com/exercise/copy_workout?*
// @match https://www.myfitnesspal.com/exercise/add_favorites
// @grant none
// ==/UserScript==
window.history.back();
我写了一个 Acrobat Javascript 脚本。如何配置 Acrobat 以便在 Acrobat 中打开 PDF 时运行 Acrobat Javascript 脚本?
你试过什么?
我在 Acrobat 菜单中环顾四周。
是什么让你相信这是可能的?
能够配置 Acrobat 以便在 Acrobat 中打开 PDF 时运行 Acrobat Javascript 脚本是有意义的。
您是否已将脚本插入 PDF?
我已经删除了 PROJECTJS 存储库并想使用 task-manager-js 存储库,当我输入:
git remote -v
它给了我:
ProjectJS Task-Manager-JS (fetch)
ProjectJS Task-Manager-JS (push)
origin https://github.com/user/ProjectJS.git (fetch)
origin https://github.com/user/ProjectJS.git (push)
task-manager-js https://github.com/user/Task-Manager-JS..git (fetch)
task-manager-js https://github.com/user/Task-Manager-JS..git (push)
它不会让我上传到 task-manager-js。它给 :
remote: Repository not found.
fatal: repository 'https://github.com/user/ProjectJS.git/' not found
有人可以帮忙吗?我正在使用 manjaro
是否可以在一段时间后禁用网站上的所有脚本?例如,我想加载一个网页并让它加载执行它想要的任何脚本。但是,我想在手动加载页面后禁用所有脚本运行。现在,我可以调出检查和调试器屏幕并暂停脚本执行,但这不允许我在没有运行脚本的情况下查看网页。它使网页变灰。有没有办法在暂停/禁用所有脚本的同时从网页实际复制文本?
首先,如果这是错误的堆栈,我深表歉意,但我想我的 Geek 同胞可能会觉得这很有趣..
我在 IEEE 网站上查找 IEEE 754 文档,首先将其绑定,然后使用 404 的“官方网站”链接!无论如何,转到域的根目录,并使用“754”的搜索选项。在搜索结果中有一些相当奇怪的 Javascript 文本。如:
window.XfSn = !!window.XfSn;
try {
(function () {
(functi _i() {
var S = !1;
function I(S) {
for (var I = 0; S--; )
I += O(document.documentElement, null);
retu I
}
function O(S, I) {
var L = "vi";
I = I || new z;
return _Z(S, function (S) {
S.setAttribute("data-" + L, I.ZS())O(S, I)
}, null)
}
function z() {
this.jz = 1;
this.iz = 0;
this.Ll = this.jz;
this._L = n this.reset(),
this.ZS();
this.iz = this.Ll;
this.Ll = th this.Ll
};
this.reset = function () {
this.jz++;
this.iz = ZZ = !1;
function ...
还有其他类似的搜索结果,在搜索结果的摘要中显示 JS,不幸的是它截断了摘要,所以我看不到完整的脚本:\
Anynoo,这里已经快凌晨 3 点了,当我这么累的时候,我不可能点击其中的一个页面!
有人见过这个吗?在我看来,这像是对 XSS 黑客的一些糟糕尝试?
这是搜索页面,不用担心JSessionID,因为我没有登录!
(我使用 Edge 来解决我的罪过,但我喜欢赚取积分 - 但这也发生在使用 fire fox 时)
比你好多了!
我收到了一个嵌入(数百个)文档的 PDF 文件,我可以使用中的“嵌入文件”功能直接访问该文件okular
(但我没有在 中找到等效的evince
):
这些文档与 PDF 文件中的特定文本元素链接,使用 hyperref,这很方便找到哪个电子表格对应于什么......但是这些链接显然是 javascript 脚本:
okular
单击或中的任何这些链接时evince
,没有任何反应。右键单击evince
提供了一个似乎不知道存在链接的菜单,okular
它只提供Follow this link
但没有任何反应。
有没有办法让这些链接在任何 linux PDF 工具中工作,如果没有,有没有办法打印出与给定链接对应的脚本,以便我可以识别相应的文件?
或者,我可以批量导出所有嵌入文档以进行自动处理吗?(grep
ping我的方式到相关数据......)
我看到这里提到过:Google Chrome (Mac) set keyboard focus from address bar back to page
解决无法从搜索栏中移动焦点的一种方法是将 JavaScript 作为参数添加到搜索 URL。我试图在上述页面的评论中提问,但我还不允许发表评论。?
我该怎么做呢?
谢谢!
我需要在 Chromium 38 引擎上测试一个功能。我在哪里可以获得使用此特定引擎的任何浏览器的特定版本。
我想知道,开发人员如何处理这种情况。如果方法不同,也请告知。