Jump to content

User:Chlod/Scripts/GoToTitle

From Wikipedia, the free encyclopedia
GoToTitle
Author(s)Chlod
StatusStable
UpdatedJanuary 30, 2021; 3 years ago (2021-01-30)
BrowsersAnything not Internet Explorer
SkinsVector, Modern, Timeless, Monobook (not seamless)
SourceUser:Chlod/Scripts/GoToTitle.js

GoToTitle is a script that allows a user to navigate to any page using the page title. Clicking on the page title will replace the title with a seamless editable text box (if you're not using {{DISPLAYTITLE}}), from which you can type in any page name. Clicking away or pressing Esc will make the box disappear. Pressing ↵ Enter will bring you to the requested page.

This has no advantages over the search box. If you find it easier to use the search box (even though it's less cool), then go ahead and use the search box.

Installation

[edit]

To install the script, add this to your common.js file.

mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/GoToTitle.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/GoToTitle.js]]

You can also add this to your global.js file to use this userscript on all wikis.

Source

[edit]

The source can be found at User:Chlod/Scripts/GoToTitle.js. Like all Wikipedia pages, the license is CC BY-SA 3.0.

Discussion

[edit]

You may visit my talk page if you have any concerns.