Alternativeto.net searchengine links

Adds links to search engines on Alternativeto search results page to make it easier to find download links for software

目前為 2023-09-09 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Alternativeto.net searchengine links
// @namespace    https://github.com/Alistair1231/my-userscripts/
// @version      0.1.0
// @description  Adds links to search engines on Alternativeto search results page to make it easier to find download links for software
// @author       Alistair1231
// @icon         https://icons.duckduckgo.com/ip2/alternativeto.net.ico
// @grant        none
// @match        https://alternativeto.net/*
// @license MIT
// ==/UserScript==
// https://greasyfork.org/en/scripts/474887-alternativeto-net-searchengine-links
// https://openuserjs.org/scripts/Alistair1231/Alternativeto.net_searchengine_links/
// https://github.com/Alistair1231/my-userscripts/raw/master/alternativeto-searchengine-links.user.js
(function () {
    "use strict";
    let parents = document.querySelectorAll("div[data-testid='app-header'] h2");
    parents.forEach(function (parent) {
      let name = parent.querySelector("a").innerHTML;
      parent.parentElement.innerHTML += `&emsp;<a href="https://www.bing.com/search?form=&q=${name}+download"><img width=30px src="https://icons.duckduckgo.com/ip2/bing.com.ico"><br>Bing</img></a>&emsp;
  <a href="https://www.google.com/search?q=${name}+download">&#8287;&#8287;<img width=30px src="https://icons.duckduckgo.com/ip2/www.google.com.ico"><br>Google</img></a>&emsp;
  <a href="https://duckduckgo.com/?t=h_&q=${name}+download"><img width=30px src="https://icons.duckduckgo.com/ip2/duckduckgo.com.ico"><br>DDG</img></a>`;
    });
  })();