User:The Transhumanist/QuickPortal.js: Difference between revisions

Content deleted Content added
or
two if conditions, using "or" operator ("||"_
Line 74:
 
// Create the "Restart portal" menu item for when a portal is displayed
if ((document.title.indexOf("Portal:") === 0) || (document.title.indexOf("Editing Portal:") === 0)) {
// But not for a subpage (page with a forward slash in its title) or a search results page
if ((document.title.indexOf("/") == -1) && (document.title.indexOf("Search results") == -1)) {