Skip to content

Commit 11fdf64

Browse files
committed
feat: 尽可能降低个人痕迹,强化组织的痕迹
1 parent 6294b97 commit 11fdf64

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/config/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Config {
1313
this.language = "english";
1414

1515
// 让用户能够自己指定前缀,也许会有一些拥有感?之前ast hook好像就有个哥们喜欢这样干...
16-
this.prefix = "CC11001100";
16+
this.prefix = "JSREI";
1717

1818
this.hookType = "use-proxy-function";
1919

src/config/ui/component/configuration-component.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class ConfigurationComponent {
1010

1111
constructor() {
1212
this.modalHTML = `
13-
<div id="cc11001100-js-script-hook-configuration-modal-window" style="display:none !important; position:fixed !important; left:0 !important; top:0 !important; width:100% !important; height:100% !important; background-color:rgba(0,0,0,0.85) !important; z-index:2147483646 !important; overflow-y:auto !important;">
13+
<div id="jsrei-js-script-hook-configuration-modal-window" style="display:none !important; position:fixed !important; left:0 !important; top:0 !important; width:100% !important; height:100% !important; background-color:rgba(0,0,0,0.85) !important; z-index:2147483646 !important; overflow-y:auto !important;">
1414
<div class="js-script-hook-scrollable-div" style="display: flex; width: 930px !important; text-align: center !important; padding: 30px !important; margin: 10px !important; position:absolute !important; left:50% !important; top:50% !important; transform:translate(-50%, -50%) !important; background:white !important; border-radius:5px !important; box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important; max-width:80% !important; text-align:center !important; z-index:99999999999; !important">
15-
<button id="cc11001100-js-script-hook-configuration-close-btn" style="position:absolute; right:8px; top:8px; cursor:pointer; padding:3px 6px; border:none; background-color:#f44336; color:white; border-radius:50%; font-size:10px;">×</button>
15+
<button id="jsrei-js-script-hook-configuration-close-btn" style="position:absolute; right:8px; top:8px; cursor:pointer; padding:3px 6px; border:none; background-color:#f44336; color:white; border-radius:50%; font-size:10px;">×</button>
1616
<div id="js-script-hook-configuration-content" style="color: black;"></div>
1717
</div>
1818
</div>
@@ -39,15 +39,15 @@ class ConfigurationComponent {
3939
$("#js-script-hook-configuration-content").append(debuggerManager.render(language, getGlobalConfig().debuggers));
4040

4141
// 关闭按钮事件处理
42-
document.getElementById("cc11001100-js-script-hook-configuration-close-btn").addEventListener('click', this.closeModalWindow);
43-
document.getElementById("cc11001100-js-script-hook-configuration-modal-window").style.display = 'flex';
42+
document.getElementById("jsrei-js-script-hook-configuration-close-btn").addEventListener('click', this.closeModalWindow);
43+
document.getElementById("jsrei-js-script-hook-configuration-modal-window").style.display = 'flex';
4444
}
4545

4646
/**
4747
* 隐藏模态框的函数
4848
*/
4949
closeModalWindow() {
50-
const element = document.getElementById("cc11001100-js-script-hook-configuration-modal-window");
50+
const element = document.getElementById("jsrei-js-script-hook-configuration-modal-window");
5151
if (element) {
5252
element.parentNode.removeChild(element);
5353
}

src/config/ui/component/language.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const chinese = {
99

1010
flagPrefix: "Hook Flag前缀:",
1111
flagPrefixTips: "在Hook的时候会设置一些全局唯一的标志位,你可以个性化修改为自定义的前缀",
12-
flagPrefixPlaceholder: "可自定义全局前缀,未设置默认为 CC11001100_js_script_hook",
12+
flagPrefixPlaceholder: "可自定义全局前缀,未设置默认为 JSREI_js_script_hook",
1313

1414
responseDebuggerHookType: "响应断点Hook方式:",
1515
responseDebuggerHookTypeTips: "此选项刷新页面后生效",

src/hook/object-function-hook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class ObjectFunctionHook {
4545

4646
// 如果已经Hook过了则不重复hook,也就是说一次addHook只生效一次
4747
// TODO 2025-01-06 03:19:19 修改为读取配置中的前缀
48-
// const prefix = getGlobalConfig().prefix || "CC11001100_js_script_hook"
49-
const prefix = "CC11001100_js_script_hook"
48+
// const prefix = getGlobalConfig().prefix || "JSREI_js_script_hook"
49+
const prefix = "JSREI_js_script_hook"
5050
const hookDoneFlag = prefix + "_hookDoneFlag";
5151
if (functionHolder[hookDoneFlag]) {
5252
return;

0 commit comments

Comments
 (0)