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

Content deleted Content added
remove redundant condition
match "Portal:" anywhere in title
Line 72:
 
// Create the "Restart portal" menu item for when a portal is displayed
if (document.title.indexOf("Portal:") ==!= 0-1) {
// 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)) {