User:Zocky/Link Complete

From Wikipedia, the free encyclopedia

Zocky's javascript tools

  • /Picture Popups - the Javascript tool that makes clicking on image thumbnails work As Nature Intended. users
  • /Search Box - search and replace in the edit box. users
  • /Auto Complete - auto complete titles of articles in the search input box on the left. users
  • /Link Complete - auto complete titles of articles when typing links in the edit box. users

Link Complete is a Javascript tool which adds autocomplete functionality for links in your editbox. users

Contents


[edit] Features

  • Type [[foo in the editbox and press tab, ctrl-space, or ctrl-enter to cycle through article titles that start with "foo".

[edit] Issues

  • Works only for articles for now.
  • No IE support yet.

[edit] Installation

To install, you have to create (or edit) a file in your userspace. For most people, this is Special:Mypage/monobook.js.

(People using the classic skin should edit Special:Mypage/standard.js instead, and people using other skins probably know which file to edit.)

Edit that page and paste in this line:

{{subst:User:Zocky/LinkComplete}}

which should expand to

// [[User:Zocky/LinkComplete.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Zocky/LinkComplete.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

If it doesn't, copy the code manually. Clear your browser's cache.

To uninstall the script, just delete those lines from your javascript file and clear your browser's cache.

[edit] Code

The code is available under GPL at User:Zocky/LinkComplete.js.

Languages