User:GhostInTheMachine/common
GhostInTheMachine • Talk • All • Barnstars • Help • Misc • Modules • Other • Layout • Photos • Projects • Scripts • Tidying • TidyingSD • UBX • WIP • 2025-02-15 19:11:55 |
common.js and common.css are loaded by the system for all skins.
- common.js — contains configuration values and the code to load all of the other scripts. It does no "work" itself, just loads all of the other scripts.
- common.css — In my case, common.css contains no CSS at all. All of the CSS that I need is loaded by the JS script that needs it.
Notes
[edit]This script is written to be loaded by my account on the other WikiMedia wikis that I use.
On other wikis, common.js only contains
mw.loader.load('//en.wikipedia.org/wiki/User:GhostInTheMachine/common.js?action=raw&ctype=text/javascript');
This script includes a system for selecting which other scripts should be loaded on the different wikis. A configuration array contains strings like
"|en|media|commons|meta| User:GhostInTheMachine/UI.js",
This means — load my UI script on the wikis that return one of the four listed IDs.
The ID is obtained by fetching wgWikiID
and making the ID smaller by removing any "wiki".
"ID" | Which wiki? | What is it? |
---|---|---|
en | English Wikipedia | This wiki |
media | MediaWiki | The wiki software |
commons | Wikimedia Commons | Media repository |
meta | Meta-Wiki | Wikimedia Foundation projects |
Where it is not appropriate to use a specific script or the wiki does not support it, the ID value is replaced with dashes (a matching number to keep the list tidy).
Users scripts from other people that I use
[edit]Gadget | Settings | Value | Details |
---|---|---|---|
HotCat | hotcat_use_category_links | true | Enable "Easy categorizing to child or parent categories" |
UTCLiveClock | LiveClockTimeZone | "Europe/London" | Display the live time using local UK time — See Time zones |
Comments in Local Time | twentyFourHours | true | Display all timestamps using the 24 hour format |
User:SD0001/W-Ping | WPing_Quick_Durations | "-1d / 1d / 2d / 3d / 1w / 2w / 3w / 1m" | drop the longer intervals, -1d ~= Now |
Script | Summary | When | Note |
---|---|---|---|
User:SD0001/Making user scripts load faster | Not a user script, as it has to be at the start of common.js | 2023-09-29 | Works wonders |
User:Ahecht/Scripts/pageswap | Swap the histories of two pages — "round-robin move" | 2024-10-08 | |
User:Anomie/linkclassifier | Colour code wiki links | 2013-11-07 | Really helps |
User:Bradv/Scripts/Superlinks | Adds a menu with an assortment of pop-up quick views | 2020-08-07 | |
User:BrandonXLF/FloatSide | Loaded by TalkHelper | 2020-06-30 | |
User:DemonDays64/Scripts/Dumb_quotes | Fix curly quotes | 2023-06-09 | Operates in the editor. Now duplicated by AutoEd |
User:Evad37/ToDoLister | Manage a TODO list in my TODO subpage | 2020-05-17 | Stores in a user sub-page, so public. I now only use W-Ping |
User:Gary/comments in local time | (documentation) ![]() |
2022-08-07 | cloned to my own script CommentsInLocalTime |
User:MPGuy2824/MoveToDraft | WP:DRAFTIFY articles, cleanup and notify the author | 2024-09-15 | |
User:Nardog/CatChangesViewer | Track additions and removals of a category | 2021-01-21 | |
User:Nux/CategorySortKeys.js | Shows sort keys on category pages | 2025-01-03 | No documentation page |
User:PerfektesChaos/js/lintHint | Adds a button to run a lint check on a page | 2020-09-03 | I do use it sometimes |
User:PrimeHunter/Source_links.js | Adds "Source links" below "What links here" in the sidebar | 2021-07-23 | |
User:SD0001/shortdescs-in-category | Adds a button to the category listings to display all of the short descriptions | 2020-08-27 | Use it every day |
User:SD0001/StubSorter | search for and add stub templates | 2025-01-04 | |
User:SD0001/W-Ping | Adds reminders to display at the top of watchlists. Best todo list | 2023-11-08 | Stores in WP user profile, so does not create edits like the Evad37 script |
User:Taavi/Aligner | Align all equal signs in infoboxe templates | 2023-11-08 | Simple, but so awesome |
User:Uglemat/RefMan | Display all of the refs in a toolbox | 2023-07-04 | Operates in the editor |
Wikipedia:AutoEd | Collection of "standard" clean-up edits | 2024-01-24 | Vital |
Wikipedia:RedWarn | Counter-vandalism tool | 2022-02-23 | Use it every day |
For | Settings | Value | Details |
---|---|---|---|
User:Evad37/ToDoLister | todo_subpage | "TODO" | Use /TODO to store my To Do list instead of /todo |
Wikipedia:AutoEd | autoEdClick | false | if I used wikEd — not needed |
Users scripts from other people that I previously used
[edit]- User:Eizen/LastEditor — displays data about a page's last editor — I created a slightly modified version
- User:Þjarkur/Highlight recently added text — highlights any text that has been recently added — rather heavy and not very effective — disabled
- Wikipedia:Subpages#Notes — add subpages link to the sidebar Tools menu — moved this into my UI script
My scripts
[edit]See my Scripts page