Greasy Fork is available in English.

Startpage Search Upgrades

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

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

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.

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

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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