Highlight Unhighlightable Text (CrowdSource)

Allows highlighting of unhighlightable text.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name       Highlight Unhighlightable Text (CrowdSource)
// @namespace  http://mturkwiki.net/forums
// @version    1.0
// @description  Allows highlighting of unhighlightable text.
// @match      https://*.mturk.com/*
// @match      https://work.crowdsource.com/amt/view*
// @grant      GM_setClipboard
// ==/UserScript==
 
function withPages_jQuery(NAMED_FunctionToRun)
{
  var funcText        = NAMED_FunctionToRun.toString ();
  var funcName        = funcText.replace (/^function\s+(\w+)\s*\((.|\n|\r)+$/, "$1");
  var script          = document.createElement("script");
  script.textContent  = funcText + "\n\n";
  script.textContent += 'jQuery(document).ready(function() {'+funcName+'(jQuery);});';
  document.body.appendChild(script);
};
 
function main0($)
{  
  function create_href(self)
  {
    /*div           = document.createElement("div");
    div.innerHTML = "Copy"
    div.text0     = self.innerText.replace("Keyword: ", "");
    div.addEventListener("click", function()
    {
      GM_setClipboard(div.text0);
    });
    self.appendChild(div);*/
  }
   
  function gen_search_url(text)
  {
    text = text.replace(" ", "+")
    text = "https://www.google.com/search?channel=fs&q=" + text + "&ie=utf-8&oe=utf-8";
    return text;
  }
   
  $.extend($.fn.enableTextSelect = function()
  {
    return this.each(function()
    {
      $(this).unbind("mousedown");
      create_href(this);
    });
  });
   
  $(this).unbind("mousedown");
 
  $("h2.text-rep")
    .enableTextSelect()
    .attr("unselectable", "off")
    .css({"-moz-user-select":"auto","-webkit-user-select":"auto","user-select":"auto"});
   
  console.log("Selectoid finished");
}
 
if (window.top === window.self)
{
  //withPages_jQuery(main0);
}
else
{
  withPages_jQuery(main0);
}