您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
当前为
- // ==UserScript==
- // @name DuckDuckGo - Add Google links with current query
- // @namespace Violentmonkey Scripts
- // @description:en Adds Google links with current query used at DuckDuckGo (for faster and more comfortable way to check alternative search results)
- // @match https://duckduckgo.com/?*
- // @grant none
- // @version 0.9
- // ==/UserScript==
- var query = '' + document.forms.x.q.value;
- var ds = document.getElementById('duckbar_static');
- var link = document.createElement('a');
- link.innerHTML = 'Google';
- link.href = 'https://www.google.com/search?q=' + encodeURIComponent(query);
- link.style.verticalAlign = 'top';
- link.style.fontWeight = "bold";
- //wdt.parentNode.parentNode.insertBefore(link, wdt.parentNode);
- var link2 = link.cloneNode();
- link2.innerHTML = 'Google';
- link2.style.position = 'fixed';
- link2.style.right = "110px";
- link2.style.bottom = "20px";
- link2.style.zIndex = "11";
- link2.style.fontSize = "xx-large";
- ds.parentNode.appendChild(link);
- document.body.appendChild(link2);