Jump to content

User:Chlod/Scripts/GoToTitle

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Chlod (talk | contribs) at 16:34, 30 January 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
GoToTitle
Author(s)Chlod
StatusStable
UpdatedJanuary 30, 2021; 4 years ago (2021-01-30)
BrowsersFirefox (but likely works on all browsers)
SkinsVector, Monobook (not seamless), Modern, Timeless
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

English Wikipedia

Edit Special:MyPage/common.js or Special:MyPage/skin.js and append this to your scripts page:

importScript("User:Chlod/Scripts/GoToTitle.js");

Other Wikipedia Languages

Add this to the common.js file of your account on that wiki:

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

This should work fine on all wikis, irregardless of whether it is a Wikimedia wiki or not.

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. You may also discuss this script specifically using this page's talk page.