Qwant Endless Scrolling

Infinite scroll for Qwant.

// ==UserScript==
// @name            Qwant Endless Scrolling
// @namespace       ferkv
// @description     Infinite scroll for Qwant.
// @version         1.0
// @license         GNU GPLv3
//
// @match           https://www.qwant.com/*
// @grant           none
// ==/UserScript==


// Upon scrolling to the bottom of the page, press the show more button
window.onscroll = function(ev) {
    if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
        document.querySelector("button[data-testid='buttonShowMore']").click();
    }
};