url |
^https://ameblo\.jp/.+/(entrylist|archive|theme) |
nextLink |
//link[@rel="next"]|id("indexPagination")//li[./a[contains(@class,"is-active")]]/following-sibling::li[1]/a|//div[@class="skin-monthlyNav"][not(id("indexPagination")//li[./a[contains(@class,"is-active")]]/following-sibling::li)]//li[./a[contains(@class,"is-active")]]/preceding-sibling::li[1]/ |
pageElement |
//ul[@class="skin-archiveList"]/li |
exampleUrl |
https://ameblo.jp/pmatsumoto/entrylist.html |
bookmarklet |
var result = document.evaluate('//a', document, null, 7, null);
var bname = "/" + location.pathname.split("/")[1] + "/";
var reg = new RegExp(bname);
for (var i = 0; i < result.snapshotLength; i++) {
if (reg.test(result.snapshotItem(i).href)) {
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;
}
|
Stylus |
@-moz-document domain("ameblo.jp") {
li>a[href*="?"]{pointer-events: none;}
} |
comment |
It is desirable to restore 81533.This may load an illegal url. In that case the correct url may be loaded on reload.If possible, disabling JavaScript will work more reliably. |