4c4 < // Script HTML element with src='//www.rjmprogramming.com.au/personal_links.js?wordingis=a%20Link%20Wording%20To%20Match' is a hotlinking idea --- > // Script HTML with src='//rjmprogramming.com.au/personal_links.js?wordingis=a%20Hashtag%20Wording%20To%20Match' is a hotlinking idea 94c94 < peu=prompt(prepeu + 'Please enter URL (no hashtags)' + midpeu + ' followed by hashtag (#) then case sensitive wording to associate the URL with (when not already linked) greater than one character long (spaces encouraged). Special URL of . gets its URL from the first matching link found on the webpage. Enter X to clear your URLs. URLs with arguments where last entered URL character is = will have last argument populated by innerText of words to right.', ''); --- > peu=prompt(prepeu + 'Please enter URL (no hashtags)' + midpeu + ' followed by hashtag (#) then case sensitive wording to associate the URL with (when not already linked) greater than one character long (spaces encouraged). Special URL of . gets its URL from the first matching link found on the webpage. Enter X to clear your URLs.', ''); 118c118 < setwpplgro(peu.split('?')[0] + '?' + encodeURIComponent(peu.split('?')[1]).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&').replace(/\%23/g,'#')); --- > setwpplgro(peu.split('?')[0] + '?' + encodeURIComponent(peu.split('?')[1]).replace(/\%26/g,'&').replace(/\%23/g,'#')); 120c120 < setwpplgro(peu.split('#')[0] + '#' + encodeURIComponent(peu.split('#')[1]).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?')); --- > setwpplgro(peu.split('#')[0] + '#' + encodeURIComponent(peu.split('#')[1])); 132c132 < localStorage.setItem('wp_personal_links', (invlu).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); --- > localStorage.setItem('wp_personal_links', (invlu)); 136c136 < localStorage.setItem('wp_personal_links', (retvwpp.trim()) + ('`') + (invlu).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); --- > localStorage.setItem('wp_personal_links', (retvwpp.trim()) + ('`') + (invlu)); 162,190d161 < function popul(inurlis, intextpart) { < var prefc='', suffc=''; < if ((' ' + inurlis).slice(-1) == '=' && inurlis.indexOf('?') != -1 && intextpart.indexOf('<') != -1 && intextpart.indexOf('>') != -1 && eval('' + intextpart.indexOf('<')) > eval('' + intextpart.indexOf('>'))) { < //console.log('0:' + inurlis + ' ... ' + intextpart + ' ... ' + (inurlis + encodeURIComponent(intextpart.split('<')[0].split('>')[eval(-1 + intextpart.split('<')[0].split('>').length)])).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); < if ((intextpart.split('<')[0].split('>')[eval(-1 + intextpart.split('<')[0].split('>').length)] + '~').indexOf(' Tutorial~') != -1) { prefc='"'; suffc='"'; } < return (inurlis + encodeURIComponent(prefc + intextpart.split('<')[0].split('>')[eval(-1 + intextpart.split('<')[0].split('>').length)] + suffc)).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&'); < } else if ((' ' + inurlis).slice(-1) == '=' && inurlis.indexOf('?') != -1 && intextpart.indexOf('<') != -1 && intextpart.indexOf('>') != -1 && eval('' + intextpart.indexOf('<')) < eval('' + intextpart.indexOf('>'))) { < //console.log('1:' + inurlis + ' ... ' + intextpart + ' ... ' + (inurlis + encodeURIComponent(intextpart.split('<')[0])).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); < if ((intextpart.split('<')[0] + '~').indexOf(' Tutorial~') != -1) { prefc='"'; suffc='"'; } < return (inurlis + encodeURIComponent(prefc + intextpart.split('<')[0] + suffc)).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&'); < } else if ((' ' + inurlis).slice(-1) == '=' && inurlis.indexOf('?') != -1 && intextpart.indexOf('<') != -1) { < //console.log('2:' + inurlis + ' ... ' + intextpart + ' ... ' + (inurlis + encodeURIComponent(intextpart.split('<')[0])).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); < if ((intextpart.split('<')[0] + '~').indexOf(' Tutorial~') != -1) { prefc='"'; suffc='"'; } < return (inurlis + encodeURIComponent(prefc + intextpart.split('<')[0] + suffc)).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&'); < } else if ((' ' + inurlis).toLowerCase().slice(-3) == '%3d' && inurlis.toLowerCase().replace('?','%3f').indexOf('%3f') != -1 && intextpart.indexOf('<') != -1 && intextpart.indexOf('>') != -1 && eval('' + intextpart.indexOf('<')) > eval('' + intextpart.indexOf('>'))) { < //console.log('-0:' + inurlis + ' ... ' + intextpart + ' ... ' + (inurlis + encodeURIComponent(intextpart.split('<')[0].split('>')[eval(-1 + intextpart.split('<')[0].split('>').length)])).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); < if ((intextpart.split('<')[0].split('>')[eval(-1 + intextpart.split('<')[0].split('>').length)] + '~').indexOf(' Tutorial~') != -1) { prefc='"'; suffc='"'; } < return (inurlis + encodeURIComponent(prefc + intextpart.split('<')[0].split('>')[eval(-1 + intextpart.split('<')[0].split('>').length)] + suffc)).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&'); < } else if ((' ' + inurlis).toLowerCase().slice(-3) == '%3d' && inurlis.toLowerCase().replace('?','%3f').indexOf('%3f') != -1 && intextpart.indexOf('<') != -1 && intextpart.indexOf('>') != -1 && eval('' + intextpart.indexOf('<')) < eval('' + intextpart.indexOf('>'))) { < //console.log('-1:' + inurlis + ' ... ' + intextpart + ' ... ' + (inurlis + encodeURIComponent(intextpart.split('<')[0])).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); < if ((intextpart.split('<')[0] + '~').indexOf(' Tutorial~') != -1) { prefc='"'; suffc='"'; } < return (inurlis + encodeURIComponent(prefc + intextpart.split('<')[0] + suffc)).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&'); < } else if ((' ' + inurlis).toLowerCase().slice(-3) == '%3d' && inurlis.toLowerCase().replace('?','%3f').indexOf('%3f') != -1 && intextpart.indexOf('<') != -1) { < //console.log('-2:' + inurlis + ' ... ' + intextpart + ' ... ' + (inurlis + encodeURIComponent(intextpart.split('<')[0])).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&')); < if ((intextpart.split('<')[0] + '~').indexOf(' Tutorial~') != -1) { prefc='"'; suffc='"'; } < return (inurlis + encodeURIComponent(prefc + intextpart.split('<')[0] + suffc)).replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&'); < } < return inurlis.replace(/\%3D/g,'=').replace(/\%3d/g,'=').replace(/\%3F/g,'?').replace(/\%3f/g,'?').replace(/\%26/g,'&'); < } 217c188 < newbih=newbih.replace(ideareps[kkn] + decodeURIComponent(ttsf[jjn]), ideareps[kkn] + '' + decodeURIComponent(ttsf[jjn]) + ''); --- > newbih=newbih.replace(ideareps[kkn] + decodeURIComponent(ttsf[jjn]), ideareps[kkn] + '' + decodeURIComponent(ttsf[jjn]) + ''); 219c190 < newbih=newbih.replace(ideareps[kkn] + decodeURIComponent(ttsf[jjn]), ideareps[kkn] + '' + decodeURIComponent(ttsf[jjn]) + ''); --- > newbih=newbih.replace(ideareps[kkn] + decodeURIComponent(ttsf[jjn]), ideareps[kkn] + '' + decodeURIComponent(ttsf[jjn]) + '');