Startpage Search Upgrades

Hide ads on Startpage search results page and set title tag better

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Startpage Search Upgrades
// @namespace    https://gist.github.com/DeflateAwning/9b6e3b4ffbf06c70a4b68a6483c8a70f
// @version      0.3.1
// @description  Hide ads on Startpage search results page and set title tag better
// @author       DeflateAwning
// @include      https://startpage.com/*
// @include      https://*.startpage.com/*
// @run-at       document-idle
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

// Hide Ads.
// Source: https://superuser.com/a/979579
GM_addStyle("div#adBlock { display: none !important }");

// Get search term from input
const searchInput = document.querySelector("#q");

if (searchInput) {
    const searchTerm = searchInput.value;

    // Set title tag based on search
    document.title = `${searchTerm} | Startpage Results`;
}