Firefox jQuery console script that visits all links on a page
Is it possible to write a jQuery scripts that visits all link开发者_如何转开发s on page from the console in firefox, so next time i visit the page they are all marked as visited?
Chers! Johan
Suppose you could:
$('a[href]').each(function() { $.get($(this).attr('href')); });
This only visits absolute links, though. $.get()
handles both absolute and relative references so we're only checking for the existence of the href
attribute.
You can use GreaseMonkey plugin. After page is loaded you can fire code will emulate navigation on the site. Although I'm not sure if the links will be marked as visited.
精彩评论