bookmarklet
לאוד גאנצע אשכול אויפאמאל
Load a whole thread at once
Loads all pages of an Ivelt thread into one page but keeps the normal layout (only the ads and navigation are removed), and shows its progress while it works.
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
- Open any page of an Ivelt thread.
- Click the bookmark. A status line shows how many pages have loaded so far.
- When it’s done, the whole thread is on one page. Read it, search it with Ctrl+F, or print it.
Use פרינט אשכול instead if you want a bare version just for printing.
Not working, or have an idea for it? Tell me.
Source code
View the source (2 KB)
Show it here
(function($) {
$(document).ready(function() {
var lastPage = parseInt($('.pagination li:not(.next):last').text(), 10);
var on_page = parseInt($('.pagination li.active:first').text(), 10);
var baseUrl = document.URL.replace(/&start=\d*/, '');
function loadPage(page) {
if (page <= lastPage) {
$('#loading-page').css('text-transform', 'none').text('Loading page ' + page);
loadNextPage(page);
} else {
$('#loaded-pages').css('text-transform', 'none').text('Loaded pages from ' + on_page + ' to ' + lastPage);
// Remove the other two messages
$('#loading-info').remove();
$('#loading-page').remove();
// Remove pagination bar
$('.pagination').remove();
// Remove all divs with IDs post_advs or post_advs2
$('#post_advs, #post_advs2').remove();
}
}
function loadNextPage(page) {
$.ajax({
url: baseUrl + '&start=' + (page * 25),
success: function(data) {
$('.post:last').after($('.post', data));
loadPage(page + 1);
},
error: function(xhr, status, error) {
console.error('Error loading page:', error);
// Handle error gracefully (e.g., display an error message)
}
});
}
lastPage = Math.max(on_page, Math.min(lastPage, parseInt(prompt('You are on page ' + on_page + ' of ' + lastPage + ' pages.\r\nTill which page do you want to print?', lastPage), 10)));
$('#page-body').before($('<span id="loading-info">').append(
$('<h4>').css({'text-align': 'center', 'font-size': '18px', 'color': '#0787c7'})
.text('Loading pages from ' + on_page + ' to ' + lastPage).append('<br>').append('<span id="loading-line">'))
); $('#loading-info').after($('<h4>').css({'text-align': 'center', 'font-size': '18px', 'color': '#0787c7'}).text('').append('<span id="loading-page">'));
$('#loading-page').after($('<h4>').css({'text-align': 'center', 'font-size': '18px', 'color': '#4BB543'}).text('').append('<span class="loaded-message" id="loaded-pages">'));
loadPage(on_page);
});
})(jQuery);Free to use, share and change (MIT license).
