bookmarklet
לאוד אלע זוך רעזולטאטן
Load all search results
Like פרינט אשכול, but for Ivelt's search results. It loads every results page into one long page.
לאוד אלע זוך רעזולטאטן
Drag this button up to your bookmarks bar. That's the whole install.
Don't see a bookmarks bar? Press Ctrl+Shift+B (on a Mac ⌘+Shift+B).
Don't click it here; it only works on the page it's made for. Drag it to your bookmarks bar instead.
Can't drag? , then add a new bookmark and paste it as the bookmark's address (URL).
Install on a phone
First tap Copy the bookmarklet above. Then:
Android (Chrome)
- Tap ⋮ and then ☆ to bookmark any page.
- Tap Edit, change the name to לאוד אלע זוך רעזולטאטן, and replace the address with the copied text.
- To use it, go to the page, tap the address bar, type לאוד אלע זוך רעזולטאטן, and tap the bookmark in the suggestions.
iPhone (Safari)
- Tap the share button and choose Add Bookmark, then save.
- Open Bookmarks, tap Edit, tap the new bookmark, and replace the address with the copied text.
- To use it, go to the page, open Bookmarks, and tap it.
How to use it
- Search on Ivelt.
- On the results page, click the bookmark. All the result pages load into one page, so you can scroll through or search them with Ctrl+F.
Not working, or have an idea for it? Tell me.
Source code
View the source (1 KB)
Show it here
var lastPage = $('.pagination li:not(.next):last').text();
var on_page = $('.pagination li.active:first').text();
var baseUrl = document.URL.replace(/&start=\d*/, '');
function cleanPosts() {
$('#page-body').siblings().remove();
$('.post:first').prevAll().remove();
$('.post:last').nextAll().remove();
$('.post-buttons').remove();
$('.responsive-hide').removeClass('responsive-hide')
}
function loadPage(page) {
if (page < lastPage) {
$('#loading-page').text(page);
loadNextPage(page);
} else {
cleanPosts();
}
}
function loadNextPage(page) {
$.ajax({
url: baseUrl + '&start=' + (page++ * 25),
success: function(data) {
$('.post:last').after($('<h3>').addClass('page-number').text('זייט ' + page).css({
'text-align': 'center',
'font-size': '14px'
}));
$('.page-number:last').after($('.post', data));
loadPage(page);
}
});
}
lastPage = Math.max(on_page, Math.min(lastPage, prompt('You are on page ' + on_page + ' of ' + lastPage + ' pages.\r\nTill which page do you want to print?', lastPage)));
$('#page-body').before($('<h3>').css({
'text-align': 'center',
'font-size': '14px'
}).text('loading page ').append('<span id="loading-page">'));
loadPage(on_page);Free to use, share and change (MIT license).
