Jump to content

User:Erik/vector.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript("User:GregU/randomlink.js");

$( function()
{
  // WhatLinksHere is probably a better way to find all articles in a WikiProject
  bblist = "Special:WhatLinksHere/Template:WikiProject_Film?namespace=1&hidelinks=1&limit=250";
 
  mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomlink_maxfrom=24000000;randomLink(bblist)',
                 'Film article', 'n-randombb', 'Random article in WikiProject Film');
});