Could you advise me with writing a greasemonkey script displaying only anchors () in a web page and deleting everything else?
thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This code will wipe out everything but a list of the href’s from links (added line breaks for clarity):
Update:
Since
document.write()seems to flake in the GM environment, here’s a DOM-based alternative: