Rewrite of the old re-pagination/antipagination extension for Firefox