Crowd Task Google Search Link

Turns company name into Google search link.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Crowd Task Google Search Link 
// @author      mmmturkeybacon + ScottB
// @description Turns company name into Google search link.
// @include     https://www.mturk.com/*
// @require     http://code.jquery.com/jquery-latest.min.js
// @version     0.1
// @grant       none
// @namespace https://greasyfork.org/users/6129
// ==/UserScript==

{ // Crowd Task Google Search Link
    var company_node = $("li:contains('Company Name:')");

    var company_text = company_node.text().trim().replace("Company Name: ", "");
    var google_URL = "http://www.google.com/search?q=" + company_text;
    google_URL = google_URL.replace("Company Name: ","").replace(/[" "]/g, "+");
    company_node.html('<a href="' + google_URL + '" target="_blank">' +company_text + '</a>');
}