Change Search Icon Link

Changes the search icon href to search users on the current domain

// ==UserScript==
// @name        Change Search Icon Link
// @match       *://nitter.net/*
// @match       *://xcancel.com/*
// @description Changes the search icon href to search users on the current domain
// @version 0.0.1.20250610152226
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function () {
  const host = window.location.hostname;
  const searchLink = document.querySelector('a.icon-search');
  if (searchLink) {
    searchLink.href = `https://${host}/search?f=users`;
  }
})();