Vimperator DuckDuckGo Tile Hints

Enables Vimperator to identify DuckDuckGo tiles (e.g. image or video tiles) as something that should be hinted.

06.02.2015 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// 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();');
});