I’m not knowledgeable in JavaScript. In fact, the code I pasted here is actually someone else’s of which was revised by a contributor. Here is the link: Get all links with contain a word
See I have this email I sent to myself containing my logged history of Firefox of certain year, and I want to extract only the URL links containing the word "rule34" from it.
So I was searching on Google of "how to copy each link that contains a specific word" and the first search result was that link.
Here is the code that was written by temerariomalaga of which the version I pasted on here was revised by idmean.
I do not know how to indent four spaces of the code, so I just took a screenshot
So I copied and pasted this revised script of temerariomalaga into the JavaScript console of Chrome on the page of my Gmail Firefox histories, and I replaced the example URL "http://www.example.es" with my link to my email of my histories.
And I replaced the example word "apple" with rule34.
But when I clicked Enter, all I got was this:
VM179:3 Uncaught SyntaxError: Unexpected token '>'
Did it not work because while this is a URL link it's not actually one of a website or is there something else I did wrong?
This is what I exactly pasted into the console.