User:Chlod/Scripts/GoToTitle

{{Short description|Userscript that allows navigating to other pages by "editing" the page title at the top of pages}}

{{Infobox user script

| author = Chlod

| updated = {{start date and age|2021|01|30}}

| status = Stable

| source = User:Chlod/Scripts/GoToTitle.js

| skins = Vector, Modern, Timeless, Monobook (not seamless)

| browsers = Anything not Internet Explorer

}}

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 {{key|Esc}} will make the box disappear. Pressing {{key|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

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

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

Discussion

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