您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enables Vimperator to identify DuckDuckGo tiles (e.g. image or video tiles) as something that should be hinted.
// License (WTFPL): http://www.wtfpl.net/ // ==UserScript== // @name Vimperator DuckDuckGo Tile Hints // @version 0.1 // @description Enables Vimperator to identify DuckDuckGo tiles (e.g. image or video tiles) as something that should be hinted. // @license WTFPL // @namespace https://greasyfork.org/en/users/8929-skoogit // @include https://duckduckgo.com/* // @grant none // ==/UserScript== // Trigger function when content is inserted into the div that wraps around all tiles document.getElementById('zero_click_wrapper').addEventListener("DOMNodeInserted", function() { // Set a dummy onclick attribute to every tile // This enables Vimperator to identify the tiles as something that should be hinted var tiles = document.getElementsByClassName('tile'); for (i=0; i < tiles.length; i++) tiles[i].setAttribute('onclick', 'javascript:void();'); });