Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Extract all text content from the page
- const text = document.body.innerHTML;
- // Regular expression to match image URLs
- const regex = /,\["(https?:\/\/[^"]+)",\d+,\d+\]/g;
- let matches = [];
- let match;
- while ((match = regex.exec(text)) !== null) {
- const url = match[1].replace(/\\u003d/g, "=").replace(/\\u0026/g, "&");
- // Skip URLs from gstatic.com domain
- if (!url.includes('.gstatic.com')) {
- matches.push(url);
- }
- }
- // Print results to console, filtering out any debugger messages
- const cleanedMatches = matches.filter(url => !url.startsWith('debugger'));
- console.log(cleanedMatches.join('\n'));
Add Comment
Please, Sign In to add comment