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

Content deleted Content added
if (selectedArticle) worked!; update comment
revert self
Line 59:
}
 
// Create the "Restart portal" menu item for when "Portal:" is not missing from the title,
if ((document.title.indexOf("Portal:") != -1) && (selectedArticle)) {
// and the portal is of the old style portal (has the old section "Selected article")
var selectedArticle = document.getElementById("Selected_article");
if ((document.title.indexOf("Portal:") != -1) && (selectedArticle)) {
// 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)) {