Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function collectURLs() {
- const urls = new Set();
- // Collect from .fileText elements
- document.querySelectorAll('.fileText').forEach(el => {
- const link = el.querySelector('a')?.href;
- if (link) urls.add(link);
- });
- // Collect from <a> elements with the specific domains
- document.querySelectorAll('a').forEach(a => {
- const href = a.href;
- if (/https?:\/\/(files|litter)\.catbox\.moe\//.test(href)) {
- urls.add(href);
- }
- });
- return Array.from(urls);
- }
Add Comment
Please, Sign In to add comment