User:Hubbin4/vector.js

importScript("User:GregU/randomlink.js")

addOnloadHook( function { vgcats = "Top|High|Mid|Low|Low|Low|Low|Low|Low|Low|NA|Unknown";  vgcats = vgcats.replace(/\w+/g, "Category:$&-importance video game articles");

ncats = "Top|High|Mid|Low|Low|Low|Low|Low|Low|Low|NA|Unknown"; ncats = ncats.replace(/\w+/g, "Category:$&-importance novel articles");

amcats = "Top|High|Mid|Low|Low|Low|Low|Low|Low|Low|NA|Unknown"; amcats = amcats.replace(/\w+/g, "Category:$&-importance anime and manga articles");

tvcats = "Top|High|Mid|Low|Low|Low|Low|Low|Low|Low|NA|Unknown"; tvcats = tvcats.replace(/\w+/g, "Category:$&-importance television articles"); mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomLink(vgcats)',                'Video game article', 'n-randomvg', 'Random article in WikiProject Video games');

mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomLink(ncats)',                'Novel article', 'n-randomvg', 'Random article in WikiProject Novels');

mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomLink(amcats)',                'Anime and manga article', 'n-randomvg', 'Random article in WikiProject Anime and manga');

mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomLink(tvcats)',                'TV article', 'n-randomvg', 'Random article in WikiProject Television'); });