Quant (Bot)

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

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

(I already have a user style manager, let me install it!)

// ==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;}");
    }
})();