Skip to content
Back to skills

Js Reverse Automation Page Redirect Debugger

ASecurity

页面跳转 JS 代码定位通杀方案:在跳转前触发 debugger 以定位调用源。仅在确认跳转定位需求时启用。

  • 57 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 31, 2026
tools

Security analysis

A100/100

Scanned May 31, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill js-reverse-automation-page-redirect-debugger --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Js Reverse Automation Page Redirect Debugger?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Js Reverse Automation Page Redirect Debugger
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-js-reverse-automation-page-redirect-debugger/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-js-reverse-automation-page-redirect-debugger)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: js-reverse-automation-page-redirect-debugger
description: 页面跳转 JS 代码定位通杀方案:在跳转前触发 debugger 以定位调用源。仅在确认跳转定位需求时启用。
---

# 页面跳转JS代码定位通杀方案

用于在页面跳转前触发 `debugger`,定位跳转触发源。

## 先读这些信息
- 仅在确认存在强制跳转或需要定位跳转代码时启用。
- 会改变页面正常导航行为,定位完成后应关闭。

## 需要收集的输入
- 是否需要 onbeforeunload 断点定位跳转来源

<label>启用 onbeforeunload 断点:</label>
<input type="text" placeholder="yes / no" />

## 工作流程
1) 注册 `onbeforeunload`,在触发时断点定位代码。

## 产出
- 可直接注入的阻断片段:

```js
(() => {
  'use strict';

  window.onbeforeunload = () => {
    debugger;
    return false;
  };
})();
```

- 最终输出必须注明:`已启用技能: 页面跳转JS代码定位通杀方案`

## 交付前检查
- onbeforeunload 是否能定位调用栈
- 正常导航行为是否按预期恢复(调试结束后关闭)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.