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
2915981e
Commit
2915981e
authored
Jan 02, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dededededededededededede
parent
5d134e2e
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
616 additions
and
220 deletions
+616
-220
extension/downloadlogs/extension.json
extension/downloadlogs/extension.json
+1
-1
extension/downloadlogs/script.js
extension/downloadlogs/script.js
+570
-219
extension/downloadlogs/viewlog.cmd
extension/downloadlogs/viewlog.cmd
+20
-0
extension/downloadlogs/viewlog.sh
extension/downloadlogs/viewlog.sh
+25
-0
No files found.
extension/downloadlogs/extension.json
View file @
2915981e
{
{
"id"
:
"downloadlogs"
,
"id"
:
"downloadlogs"
,
"version"
:
"1.
0.2
"
,
"version"
:
"1.
1.0
"
,
"name"
:
"按S下载牌谱"
,
"name"
:
"按S下载牌谱"
,
"author"
:
"凉宫杏树"
,
"author"
:
"凉宫杏树"
,
"description"
:
"太好了,准备把牌谱拿给主人看。"
,
"description"
:
"太好了,准备把牌谱拿给主人看。"
,
...
...
extension/downloadlogs/script.js
View file @
2915981e
This diff is collapsed.
Click to expand it.
extension/downloadlogs/viewlog.cmd
0 → 100644
View file @
2915981e
@echo
off
SETLOCAL
EnableDelayedExpansion
::gets around the windows parameter character limit by writing an .html that opens the tenhou/5 url
:: rem get unique file name
:: :uniqloop
:: set "tmpfile=%tmp%\bat~%RANDOM%.html"
:: if exist "%tmpfile%" goto :uniqloop
set
"tmpfile=
%tmp%
~viewlog.html"
<
NUL
echo
|
set
/p
=
"<head><meta http-equiv='refresh' content='0; URL=https://tenhou.net/5/?tw=2#json="
>
%tmpfile%
<
NUL
type
%
1
>>
%tmpfile%
<
NUL
echo
|
set
/p
=
"'></head>"
>>
%tmpfile%
start
%tmpfile%
::you could wait and delete the file..
::pause
::del %tmpfile%
extension/downloadlogs/viewlog.sh
0 → 100644
View file @
2915981e
#!/bin/bash
if
[[
""
==
$1
]]
;
then
echo
"
${
0
}
log.json"
echo
"opens your log with tenhou.net/5"
exit
1
fi
url
=
"https://tenhou.net/5/?tw=2#json=""
$(
cat
$1
)
"
case
"
$OSTYPE
"
in
linux
*
)
xdg-open
"
${
url
}
"
;;
darwin
*
)
open
"
${
url
}
"
;;
cygwin
*
)
cygstart
"
${
url
}
"
;;
*
)
open
"
${
url
}
"
||
start
"
${
url
}
"
;;
esac
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