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]/a |
pageElement |
//ul[@class="skin-archiveList"]/li |
exampleUrl |
https://ameblo.jp/pmatsumoto/entrylist.html https://ameblo.jp/pmatsumoto/themeentrylist-10035631269.html https://ameblo.jp/pmatsumoto/archiveentrylist-201709.html https://ameblo.jp/pmatsumoto/archiveentrylist-201708.html https://ameblo.jp/hanawa-blog/entrylist.html https://ameblo.jp/hanawa-blog/archiveentrylist-201804.html https://ameblo.jp/hanawa-blog/themeentrylist-10029772288.html |
bookmarklet |
var result = document.evaluate('//a[not(./ancestor::div[@class="skin-entryBody"]) and not(./img)]', 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() {
history.pushState(null, null, "#");
location.href = this.dataset.href;
} |
Stylus |
@-moz-document domain("ameblo.jp") { li>a[href*="?"]:not(.bfc-list__link){pointer-events: none;}
.skin-entryPaging a{pointer-events: none;} } |
comment |
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. |