You can do this using a bookmarklet. A bookmarklet is a bookmark with a URI starting with the pseudo-protocol javascript:
followed by URI-encoded JavaScript code. When you trigger the bookmark, browser will run the code in the context of the current page. So you'd go to that page, then use that bookmarklet to fill in your standard information, and there you go.
For example, here's a bookmarklet that, when run, will look for an element with the id
someElement
on the page and, if found, assign "some value"
to its value
property:
javascript:(function(){var d=document,e=d.getElementById("someElement");e.value="some value";})();
Read full article from javascript - function as google chrome bookmark - Stack Overflow
No comments:
Post a Comment