User:GhostInTheMachine/Scripts
|
GhostInTheMachine • Talk • Barnstars • Help • Misc • Modules • Other • Layout • Photos • Projects • Scripts — UBX • drafts • t • test • wip • 2026-05-31 10:14:25 |
| Overview | Scripts | Status | Me | Description | Listed |
|---|---|---|---|---|---|
| CommentsInLocalTime | JS | Live | Adjust timestamp to local time — Fork of User:Gary/comments in local time.js as of 2022-08-07 | ||
| FoldSections | JS | Live | Fold sections of an article — Fork of User:BrandonXLF/CollapseSections as of 2022-01-10 | ||
| GraphicReplyLink | JS | Live | Replace the text reply link with a with a better-looking graphic emoji | Namespace-specific → Discussions | |
| LastEditor | JS | Live | Displays information related to page's last editor — Fork of User:Eizen/LastEditor as of 2021-01-18 | ||
| NoEditSummary | JS | Live | Warn if you are about to save an edit with no summary text — stolen from a post by User:SD0001 | Editing → Edit summary | |
| SD-display-helper | JS | Live | CSS to improve display of the Short Description Helper | ||
| SDlinkBuilder | JS | Live | Extracts all of the links from a page and builds a list of them with their Short descriptions | Articles | |
| SDsummary | JS | Live | Provide buttons for boilerplate Short description edit summaries | ||
| ShinyButtons | JS | Live | Add extra menu buttons for my TODO and WIP subpages — rolled into UI | ||
| SortSearchResults | JS | Live | Sort the search results by page name. Removed now that search offers sorting by page name | ||
| SortWhatLinksHere | JS | Live | Sort the links displayed by the What links here page | Listings → What links here | |
| SubPages | JS | Live | Add a button to list the subpages of the current page — rolled into UI | Shortcuts → Page information | |
| TalkHelper | JS | v2 live | ✓ | Improve the readability of long talk pages (redirects to latest version) | |
| — TalkHelper v1 | JS | Obsolete | ✓ | Highlights the posts from yesterday and today. Adds a menu button to jump to the first post | Namespace-specific → Discussions |
| — TalkHelper v2 | JS | Superseded | ✓ | Adds yesterday and today sidebar menu for simpler navigation | Namespace-specific → Discussions |
| — TalkHelper v3 | JS | Live | Updated to use the standard Comments in Local Time gadget | ||
| — TalkHelper v4 | JS | prototyping | Highlight posts since the page was last viewed. Tricky interface if there have been a lot of changes | ||
| Tasky | prototyping | Add articles to a task list and manage the task status | |||
| UI | JS | Live | Assorted changes to the layout of current skin and menus Now includes ShinyButtons and SubPages |
||
| WatchlistTidy | JS | Live | Makes changes to the layout of the watchlist page to fix specific design errors | Listings → Watchlist | |
| Test-1 | JS | testing | ✗ | Whatever I am Here be dragons |
|
| CSS | |||||
| common | JS | standard | Listed here so that I can add notes to the page rather than the script | ||
| CSS | ✓ | Empty — all CSS is now added by the JS script that needs it |
Scripts borrowed and stolen
I use various user scripts written by other people. See the notes in the page covering my common.js
Loading user scripts
Template {{Lusc}} = {{Load user script}}
This is the current way to load a user script which uses the newer mw.loader.load() function.
- MediaWiki ResourceLoader:
- MediaWiki core documentation:
- mw.loader mw.loader
- mw.loader-method-using load dependencies
Also
{{Js}} — uses the full URL, so it can load scripts from another wiki
Installing user scripts
Template {{Iusc}} = {{Install user script}}
- This way to import a user script uses the importScript() function
- importScript() is not deprecated — see
{{Install user script}}
| February 2010 | MediaWiki 1.16 | added importScript as part of the mediawiki.util module |
| 15 April 2015 | MediaWiki 1.25 | importScript/importStylesheet utilities as marked deprecated — diff |
| 23 April 2015 | MediaWiki 1.25 | importScript/importStylesheet utilities reinstated — diff |
| November 2015 | MediaWiki 1.26 | unconditional preload of mediawiki.util disabled by default |
| June 2016 | MediaWiki 1.27 | preload of mediawiki.util module no longer available — scripts that use the mediawiki.util module must express a dependency on it |
| July 2017 | MediaWiki 1.29 | wikibits.js is deprecated |
| September 2022 | MediaWiki 1.39 | the importScript() function was rewritten and is fully safe — diff |
JavaScript misc
- jQuery API documentation
- JavaScript mw.config — direct access to config variables currently works but is strongly discouraged
- loading config variables — instead, load config variables via mw.config.get( 'wgUserEditCount')
- User:SD0001/Making user scripts load faster — Enable caching for resource loads
- Extension:SyntaxHighlight
Gadgets
- MediaWiki:Gadgets-definition ⇒ Special:Gadgets — list of special gadgets users can enable
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.