Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MajsoulPlusMods
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
森野さくら
MajsoulPlusMods
Commits
8ddcc121
Commit
8ddcc121
authored
Dec 09, 2020
by
SUPERSTAR-MITSURU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5ffcd5c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
extension/AntiAfk/6.png
extension/AntiAfk/6.png
+0
-0
extension/AntiAfk/AntiAfk.js
extension/AntiAfk/AntiAfk.js
+10
-0
extension/AntiAfk/extension.json
extension/AntiAfk/extension.json
+9
-0
No files found.
extension/AntiAfk/6.png
0 → 100644
View file @
8ddcc121
69.2 KB
extension/AntiAfk/AntiAfk.js
0 → 100644
View file @
8ddcc121
// Prevents getting kicked for inactivity
var
waitheatbeat
=
setInterval
(
function
()
{
if
(
this
&&
this
.
GameMgr
&&
this
.
GameMgr
.
Inst
&&
Laya
)
{
setInterval
(()
=>
{
this
.
GameMgr
.
Inst
.
_pre_mouse_point
=
new
Laya
.
Point
(
Math
.
floor
(
Math
.
random
()
*
document
.
getElementById
(
'
layaCanvas
'
).
width
),
Math
.
floor
(
Math
.
random
()
*
document
.
getElementById
(
'
layaCanvas
'
).
height
));
document
.
dispatchEvent
(
new
Event
(
'
mousemove
'
));
},
10000
);
clearInterval
(
waitheatbeat
);
}
},
1000
);
\ No newline at end of file
extension/AntiAfk/extension.json
0 → 100644
View file @
8ddcc121
{
"id"
:
"AntiAfk"
,
"version"
:
"1.0.0"
,
"name"
:
"阻止进入挂机状态"
,
"author"
:
"NeverDecaf"
,
"description"
:
"我还活着呢!(√)
\n
你妈的,为什么(×)"
,
"preview"
:
"6.png"
,
"entry"
:
[
"AntiAfk.js"
]
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment