Wikipedia:Tools/Browser tools/cross-browser/Extract list of authors of an article

From Wikipedia, the free encyclopedia

Bookmarklet to create a list of authors of an article

Description

The GNU free documentation licence requires the publication of the list of authors of an article, eg. when translating it within Wikipedia, or when copying it to another wiki. Wikinations.org proposes the following bookmarklet to do this.

Instructions

  1. Go to the history page of the article.
  2. Click on "500" to display the last 500 modifications of the page.
  3. Make sure that your browser allows pop-ups on this page.
  4. Copy & paste the code into the address bar of your browser.
  5. Confirm your entry by pressing the "Enter" key.
  6. A window opens with the list of contributors. Verify that special characters are handled properly.

Code

Note: The code has been broken onto multiple lines to preserve page layout. Please paste each segment onto a single line when using.
javascript:eMlA=;for(iB2M=0;iB2M<document.links.length;iB2M++)
{Ju59=document.links[iB2M].toString();
if(Ju59.substring(0,34)=='http://en.wikipedia.org/wiki/User:')
{Ju60=Ju59.substring(34,Ju59.length)+'\n';if(eMlA.indexOf(Ju60)==-1)
{eMlA+=Ju60}}};WN7z=open(,'Z6','width=400,height=200,scrollbars,resizable,menubar');
with(WN7z.document){write('<base target=_blank>');write(eMlA);void(close())}