您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds links to search engines on Alternativeto search results page to make it easier to find download links for software
当前为
- // ==UserScript==
- // @name Alternativeto.net searchengine links
- // @namespace https://github.com/Alistair1231/my-userscripts/
- // @version 0.1.1
- // @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
- /*jshint esversion: 6 */
- (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 += ` <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> 
- <a href="https://www.google.com/search?q=${name}+download">  <img width=30px src="https://icons.duckduckgo.com/ip2/www.google.com.ico"><br>Google</img></a> 
- <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>`;
- });
- })();