Quant (Bot)

Script que añade funciones a Quant (Oculta Qoz y elimina los avisos sobrantes).

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Quant (Bot)
// @namespace    https://greasyfork.org/users/592063
// @icon         https://icons.duckduckgo.com/ip2/www.qwant.com.ico
// @version      0.1.7
// @description  Script que añade funciones a Quant (Oculta Qoz y elimina los avisos sobrantes).
// @author       wuniversales
// @include      https://www.qwant.com/*
// @include      https://qwant.com/*
// @require      https://greasyfork.org/scripts/37236-monkeyconfig/code/MonkeyConfig.js
// @grant        GM_Config
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_addStyle
// @grant        GM_registerMenuCommand
// ==/UserScript==

var cfg = new MonkeyConfig({
    title: 'Configuración',
    menuCommand: true,
    params: {
        Ocultar_cartel_de_Resultados_Ordenados_Por_Relevancia: {
            type: 'checkbox',
            default: true
        },
        Ocultar_pie_de_pagina_completo: {
            type: 'checkbox',
            default: false
        },
    }
});

var ocultarcartelROPR=cfg.get('Ocultar_cartel_de_Resultados_Ordenados_Por_Relevancia');
var ocultarpiedepagina=cfg.get('Ocultar_pie_de_pagina_completo');

(function() {
    'use strict';
    async function addGlobalStyle(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css.replace(/;/g, ' !important;');
        head.appendChild(style);
    }
    if(ocultarcartelROPR){
        addGlobalStyle("div[class=result_column__about]{display:none;}");
    }
    if(ocultarpiedepagina){
        addGlobalStyle("footer > nav{display:none;}");
    }
})();