Created
August 23, 2025 21:36
-
-
Save pavlo-bondarchuk/ef4ef104ed96badba931162f8084b8ce to your computer and use it in GitHub Desktop.
AISEO sitemap link extractor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(()=>{const prefer='ru';const pick=(h)=>{try{const u=new URL(h);const seg=u.pathname.split('/').filter(Boolean);return seg[0]===prefer;}catch{return false}};const as=[...document.querySelectorAll('tbody td.left a.localized')];const hrefs=[...new Set(as.map(a=>a.href).filter(pick))];const txt=hrefs.join('\n');const d=document,w=d.createElement('div');w.style.cssText='position:fixed;left:10%;right:10%;top:10%;z-index:999999;background:#111;color:#eee;border:1px solid #444;padding:16px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.6);font:14px/1.4 system-ui,Arial';w.innerHTML='<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:8px"><b>Extracted links ('+hrefs.length+') — '+prefer.toUpperCase()+'</b><button id="x" style="background:#333;border:0;color:#fff;padding:6px 10px;border-radius:6px;cursor:pointer">Close</button></div>';const ta=d.createElement('textarea');ta.style.cssText='width:100%;height:60vh;background:#000;color:#0f0;border:1px solid #333;border-radius:8px;padding:10px;';ta.value=txt;const bar=d.createElement('div');bar.style.cssText='display:flex;gap:8px;justify-content:flex-end;margin-top:8px';const c=d.createElement('button');c.textContent='Copy';c.style.cssText='background:#2e7d32;border:0;color:#fff;padding:8px 12px;border-radius:6px;cursor:pointer';c.onclick=()=>{ta.select();document.execCommand('copy');c.textContent='Copied!'};w.append(ta,bar);bar.append(c);w.querySelector('#x').onclick=()=>w.remove();d.body.appendChild(w)})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment