User:Polygnotus/Scripts/CategoryToClipboard.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 116:
}
// When URLs are requested, return ONLY the URLs, not the article names
return items.map(item => {
const encodedTitle = encodeURIComponent(item.replace(/ /g, '_'));
return `${item}\nhttpshttps://en.wikipedia.org/wiki/${encodedTitle}`;
}).join('\n\n');
}