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
a95cd91c
Commit
a95cd91c
authored
Dec 09, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
e1772fac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
extension/MajsoulHelper/extension.json
extension/MajsoulHelper/extension.json
+1
-1
extension/MajsoulHelper/main.js
extension/MajsoulHelper/main.js
+5
-5
No files found.
extension/MajsoulHelper/extension.json
View file @
a95cd91c
{
{
"id"
:
"MajsoulHelper"
,
"id"
:
"MajsoulHelper"
,
"version"
:
"4.1.
5
"
,
"version"
:
"4.1.
6
"
,
"name"
:
"牌理辅助"
,
"name"
:
"牌理辅助"
,
"author"
:
[
"Fr0stbyteR"
],
"author"
:
[
"Fr0stbyteR"
],
"description"
:
"麻将就是要笑着打。
\n
WDNMD!
\n
天凤牌理诚不欺我("
,
"description"
:
"麻将就是要笑着打。
\n
WDNMD!
\n
天凤牌理诚不欺我("
,
...
...
extension/MajsoulHelper/main.js
View file @
a95cd91c
// ==UserScript==
// ==UserScript==
// @name Majsoul Helper
// @name Majsoul Helper
// @namespace https://github.com/Fr0stbyteR/
// @namespace https://github.com/Fr0stbyteR/
// @version 0.4.1
5
// @version 0.4.1
6
// @description dye recommended discarding tile with tenhou/2 + River tiles indication
// @description dye recommended discarding tile with tenhou/2 + River tiles indication
// @author Fr0stbyteR, FlyingBamboo
// @author Fr0stbyteR, FlyingBamboo
// @match https://www.majsoul.com/*
// @match https://www.majsoul.com/*
...
@@ -78,8 +78,8 @@
...
@@ -78,8 +78,8 @@
const
mToInject
=
[
"
play
"
,
"
fastplay
"
,
"
record
"
,
"
fastrecord
"
];
const
mToInject
=
[
"
play
"
,
"
fastplay
"
,
"
record
"
,
"
fastrecord
"
];
mToInject
.
forEach
(
mType
=>
{
mToInject
.
forEach
(
mType
=>
{
const
m
=
action
[
mType
].
bind
(
action
);
const
m
=
action
[
mType
].
bind
(
action
);
action
[
mType
]
=
action
=>
{
action
[
mType
]
=
(
action
,
...
rest
)
=>
{
const
r
=
m
(
action
);
const
r
=
m
(
action
,
...
rest
);
setTimeout
(()
=>
this
.
analyse
(
key
,
action
,
mType
),
delay
+
(
key
===
"
ActionNewRound
"
&&
action
.
al
?
1300
:
0
));
setTimeout
(()
=>
this
.
analyse
(
key
,
action
,
mType
),
delay
+
(
key
===
"
ActionNewRound
"
&&
action
.
al
?
1300
:
0
));
// console.log(action);
// console.log(action);
return
r
;
return
r
;
...
@@ -87,8 +87,8 @@
...
@@ -87,8 +87,8 @@
})
})
}
}
const
m
=
view
.
DesktopMgr
.
prototype
.
setChoosedPai
;
const
m
=
view
.
DesktopMgr
.
prototype
.
setChoosedPai
;
view
.
DesktopMgr
.
prototype
.
setChoosedPai
=
e
=>
{
view
.
DesktopMgr
.
prototype
.
setChoosedPai
=
(
e
,
...
rest
)
=>
{
const
r
=
m
.
call
(
view
.
DesktopMgr
.
Inst
,
e
);
// render normally
const
r
=
m
.
call
(
view
.
DesktopMgr
.
Inst
,
e
,
...
rest
);
// render normally
if
(
e
!==
null
)
this
.
dyeRiver
(
e
);
// override rendering
if
(
e
!==
null
)
this
.
dyeRiver
(
e
);
// override rendering
return
r
;
return
r
;
}
}
...
...
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