AdguardTeam / AdguardTeam/Scriptlets

Improve 'abort-on-stack-trace' — some stack logs cannot be used with Firefox extension

オープン
#469 コメント 0 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
enhancement Priority: P4
主要言語
JavaScript
スター
195
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

説明

For https://github.com/AdguardTeam/AdGuardExtra/issues/551 stack logs with Chrome extension are like
```
01:07:52.425 Navigated to https://wiki.yjsnpi.nu/
01:07:53.369 0b0d990d-b7e9-4cc7-84d6-30427aea8aec:26 [AdGuard] https://wiki.yjsnpi.nu/#%#//scriptlet('abort-on-stack-trace', 'Function.prototype.toString', '/w/load.php?lang=ja&modules=codex-search-styles%2Cjquery%2Coojs%2C&skin=vector-2022&version=L58hf')
hit @ 0b0d990d-b7e9-4cc7-84d6-30427aea8aec:26
abort @ 0b0d990d-b7e9-4cc7-84d6-30427aea8aec:26
get @ 0b0d990d-b7e9-4cc7-84d6-30427aea8aec:26
get @ 0b0d990d-b7e9-4cc7-84d6-30427aea8aec:26
(Anonymous) @ load.php?lang=ja&modules=codex-search-styles%2Cjquery%2Coojs%2C&skin=vector-2022&version=L58hf:1
d @ load.php?lang=ja&modules=codex-search-styles%2Cjquery%2Coojs%2C&skin=vector-2022&version=L58hf:1
(Anonymous) @ load.php?lang=ja&modules=codex-search-styles%2Cjquery%2Coojs%2C&skin=vector-2022&version=L58hf:1
(Anonymous) @ load.php?lang=ja&modules=codex-search-styles%2Cjquery%2Coojs%2C&skin=vector-2022&version=L58hf:1
01:07:56.317 startup.js:909 Skipped unavailable module jquery.patent
resolveStubbornly @ startup.js:909
load @ startup.js:2040
(Anonymous) @ startup.js:2575
(Anonymous) @ startup.js:2616
```

and I can use the `d` function for `abort-on-stack-trace`. However, the logs with Firefox extension are like
```
Navigated to https://wiki.yjsnpi.nu/
Skipped unavailable module jquery.patent startup.js:909:11
Cookie warnings 3
console.trace() [AdGuard] https://wiki.yjsnpi.nu/#%#//scriptlet('abort-on-stack-trace', 'Function.prototype.toString', '/w/load.php?lang=ja&modules=codex-search-styles%2Cjquery%2Coojs%2C&skin=vector-2022&version=L58hf') 8407093f-a134-4927-981f-45b7e7278766:41:3275
hit blob:https://wiki.yjsnpi.nu/8407093f-a134-4927-981f-45b7e7278766:41
abort blob:https://wiki.yjsnpi.nu/8407093f-a134-4927-981f-45b7e7278766:41
get blob:https://wiki.yjsnpi.nu/8407093f-a134-4927-981f-45b7e7278766:41
get blob:https://wiki.yjsnpi.nu/8407093f-a134-4927-981f-45b7e7278766:41
jQuery 4
```

and the `d` funciton is collapsed under jQuery frames, as in the screenshot below:

Screenshot

![logs-firefox](https://github.com/user-attachments/assets/872277ee-ac9c-493c-97a6-2f6be14452e5)

I tried to use the `d` function or even `wiki.yjsnpi.nu#%#//scriptlet('abort-on-stack-trace', 'Function.prototype.toString', 'NFvFCLPbf')` but neither of them works on Firefox. The stack logs can be differnt on different browsers, but I confirmed uBO can use the `d` on Firefox as well, so am happy if this can be fixed.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。