开发者

Firefox jQuery console script that visits all links on a page

开发者 https://www.devze.com 2023-01-17 04:56 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消