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

Content deleted Content added
fix alert
try to fix alert
Line 62:
// and the portal is of the old style portal (has the old section "Selected article", that is index returns value for that section title)
var str1 = document.getElementById('mw-content-text');
alert(str1.value);
if ((document.title.indexOf("Portal:") != -1) && (str1.indexof("Selected article") != -1)) {
// But not for a subpage (page with a forward slash in its title) or a search results page