User:MerrickXasis/vector.js

importScript("User:GregU/randomlink.js"); addOnloadHook( function { // BIOLOGY  biolist = "Special:WhatLinksHere/Biology?namespace=0&hidelinks=0&limit=20";  mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomlink_maxfrom=24000000;randomLink(biolist)', 'Biology article', 'n-randombio', 'Random biology article');

// CHEMISTRY chemlist = "Special:WhatLinksHere/Chemistry?namespace=0&hidelinks=0&limit=20"; mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomlink_maxfrom=24000000;randomLink(chemlist)',                'Chemistry article', 'n-randomchem', 'Random chemistry article');

// PHYSICS physlist = "Special:WhatLinksHere/Physics?namespace=0&hidelinks=0&limit=20"; mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomlink_maxfrom=24000000;randomLink(physlist)',                'Physics article', 'n-randomphys', 'Random physics article');

// EARTH SCIENCES eslist = "Special:WhatLinksHere/Earth_science?namespace=0&hidelinks=0&limit=20"; mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomlink_maxfrom=24000000;randomLink(eslist)',                'Earth Science article', 'n-randomes', 'Random earth science article'); });