In chrome with a greasemonkey extension, how can I modify an `<a...>` construct to strip out the onc
- by Ross Rogers
I want to modify an internal webpage to strip away some of the onclick behavior of certain links.
The internal webpage has a bunch of links like:
<a href="/slm/detail/ar/3116370" onclick="rallyPorthole.showDetail('/ar/view.sp','3116370','pj/b');return false;">foo de fa fa</a>
How can I do an extension to Chrome so it does the following:
for link in all_links:
if link's href attribute matches '/slm/detail/ar/...':
remove the onclick attribute