url |
^https://ameblo\.jp/nishino-akihiro/entry |
nextLink |
//a[./span[contains(@data-uranus-icon,"paging_next")]] |
pageElement |
//div[@class="skin-blogFooterNav"]/preceding-sibling::* |
exampleUrl |
https://ameblo.jp/nishino-akihiro/entry-12401820954.html |
bookmarklet2 |
location.reload(); |
bookmarklet3 |
var result = document.evaluate('//a[contains(@href,"/nishino-akihiro/")]', document, null, 7, null);
for (var i = 0; i < result.snapshotLength; i++) {
result.snapshotItem(i).addEventListener('click', sample, false);
result.snapshotItem(i).dataset.href = result.snapshotItem(i).href;
result.snapshotItem(i).href = "javascript:void(0);";
}
function sample() {
location.href = this.dataset.href;
} |
bookmarklet |
var result = document.evaluate('//div[@class="skin-entryBody"]//a[not(@alt0)][./img]',document, null, 7, null);
var result2 = document.evaluate('//div[@class="skin-entryBody"]//a[not(@alt0)]/img',document, null, 7, null);
for(var i=0;i<result.snapshotLength;i++)
{
result2.snapshotItem(i).src=result.snapshotItem(i).href;
} |
comment |
This may load an illegal url. In that case the correct url may be loaded on reload. |