forked from AnYiEE/AwesomeGadgets
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(async function () { | ||
const consoleTUrl = `${mw.config.get('wgServer')}/api.php?action=query&meta=siteinfo&formatversion=2&format=json`; | ||
const generatordata = await fetch(consoleTUrl); | ||
const generatordataJson = (await generatordata.json()) as unknown; | ||
const mediawikiVersions = (generatordataJson as {query: {general: {generator: string}}}).query.general.generator; | ||
const ascii = ` | ||
██╗ ██╗ ██████╗ ██╗ ██╗██╗ ██╗ | ||
╚██╗ ██╔╝ ██╔═══██╗██║ ╚═╝██║ ╚═╝ | ||
╚██╗ ██╔╝██████╗ ██╗ ██╗██║ ╚═╝███████╗ ██████╗ ██╗ ██╗ ██╗ ██╗ ██╗██╗██║ ██╗██╗ | ||
╚████╔╝██╔═══██╗██║ ██║╚██████╗ ██╔═══██╗██╔═══██╗██║ ██║ ██║ ██║ ██║██║██║ ██╔╝██║ | ||
╚██╔╝ ██║ ██║██║ ██║ ╚════██║██║ ██║██║ ██║██║ ██║ ██║ ██║ ██║██║██████╔╝ ██║ | ||
██║ ██║ ██║██║ ██║██ ██║██║ ██║██║ ██║██║ ██║ ██║ ██║ ██║██║██╔══██╗ ██║ | ||
██║ ╚██████╔╝╚██████╔╝╚██████╔╝██║ ██║╚██████╔╝╚██████╔╝██╗╚█████ ████╔╝██║██║ ╚██╗██║ | ||
╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ | ||
©2023-${new Date().getFullYear()} 有兽档案馆 ${mediawikiVersions} | ||
`; | ||
console.log(`%c${ascii}`, 'color:#159c5a'); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* SPDX-License-Identifier: CC-BY-SA-4.0 | ||
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0|import=no}}' | ||
* @author 顶呱呱的阿杰 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"enable": true, | ||
"description": "<sup><abbr title=\"默认为所有注册用户启用\">U</abbr></sup><span id=\"Gadget-NavbarAvatar\"></span> NavbarAvatar <small>在导航栏显示用户头像。</small>", | ||
"section": "browser", | ||
"default": true, | ||
"dependencies": ["mediawiki.user"], | ||
"hidden": true, | ||
"rights": ["edit"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/SkinCitizen_CSS/modules/infobox-tabber-overflow-repair.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 修复tabber扩展在infobox中溢出的问题 by awajie | ||
.infobox { | ||
tbody { | ||
> tr:nth-child(1) { | ||
td { | ||
display: flex; | ||
flex-direction: column; | ||
overflow-x: auto; | ||
.tabber__header .tabber__header__prev::after, | ||
.tabber__header .tabber__header__next::after { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
} | ||
} | ||
} |