Startpage Search Upgrades

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

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         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`;
}