Skip to content

Commit

Permalink
Merge pull request #4 from BaigeiGu/master
Browse files Browse the repository at this point in the history
迁移一批小工具
  • Loading branch information
ZoruaFox authored Feb 20, 2024
2 parents efdb23b + 55078d4 commit 7b153b5
Show file tree
Hide file tree
Showing 25 changed files with 484 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
"unicorn/require-post-message-target-origin": "off",
"unicorn/string-content": "off",
"unicorn/switch-case-braces": ["error", "avoid"],
"unicorn/prefer-query-selector": "off",

"getter-return": [
"error",
Expand Down
44 changes: 44 additions & 0 deletions dist/DisambigLinks/DisambigLinks.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions dist/HideConversionTab/HideConversionTab.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/InPageEdit/InPageEdit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions dist/InterwikiTips/InterwikiTips.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions dist/NavbarAvatar/NavbarAvatar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

119 changes: 119 additions & 0 deletions dist/Scroller/Scroller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/definition.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
</div>

== appear ==
* DisambigLinks[ResourceLoader|default|requiresES6|right=edit]|DisambigLinks.css
* HideConversionTab[ResourceLoader|default|requiresES6]|HideConversionTab.css
* InterwikiTips[ResourceLoader|default|requiresES6]|InterwikiTips.css
* React[ResourceLoader|requiresES6]|React.js

== browser ==
* NavbarAvatar[ResourceLoader|default|hidden|requiresES6|right=edit]|NavbarAvatar.js
* Scroller[ResourceLoader|default|hidden|requiresES6]|Scroller.js

== edit ==
* InPageEdit[ResourceLoader|rights=skipcaptcha|requiresES6]|InPageEdit.js
22 changes: 22 additions & 0 deletions src/DisambigLinks/DisambigLinks.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
a.mw-disambig::after,
a.mw-redirect::after {
font-weight: normal;
line-height: 0;
text-indent: 0.1em;
vertical-align: super;
}

a.mw-disambig::after {
content: '⇄';
font-size: 0.75em;
}

a.mw-redirect::after {
content: '↳';
font-size: 0.9em;
}

a.mw-disambig.mw-redirect::after {
content: '⇄↳';
font-size: 0.75em;
}
7 changes: 7 additions & 0 deletions src/DisambigLinks/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* SPDX-License-Identifier: CC-BY-SA-4.0
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
*
* @source https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/DisambigLinks>
* @author Kaldari, Cyberpower678, Alexander Misel, Artoria2e5, WaitSpring <[email protected]>, Qiuwen Baike Contributors and YsArxiv Contributors.
*/
6 changes: 6 additions & 0 deletions src/DisambigLinks/definition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"enable": true,
"description": "<span id='Gadget-DisambigLinks'></span>将[[LIB:消歧义|消歧义]]和[[Help:重定向|重定向]]链接高亮显示",
"default": true,
"right": "edit"
}
7 changes: 7 additions & 0 deletions src/HideConversionTab/HideConversionTab.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* 繁简转换:默认隐藏zh、zh-hans和zh-hant标签,允许用户在小工具中自行关闭。 */
#ca-varlang-0,
#ca-varlang-1,
#ca-varlang-2,
#mw-mf-language-variant-selection > li:nth-child(-n + 3) {
display: none !important;
}
7 changes: 7 additions & 0 deletions src/HideConversionTab/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* SPDX-License-Identifier: CC-BY-SA-4.0
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
*
* @base <https://zh.wikipedia.org/wiki/Special:Permalink/63548907>
* @source <https://git.qiuwen.net.cn/InterfaceAdmin/Gadgets/src/branch/master/src/Gadgets/HideConversionTab>
*/
Loading

0 comments on commit 7b153b5

Please sign in to comment.