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 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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>`;
    });
  })();