Evan J Helper

Makes the URL a google search link

目前为 2014-11-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Evan J Helper
  3. // @version 0.1
  4. // @description Makes the URL a google search link
  5. // @match https://s3.amazonaws.com/mturk_bulk*
  6. // @require https://code.jquery.com/jquery-latest.min.js
  7. // @copyright 2014+, Tjololo
  8. // @namespace https://greasyfork.org/users/710
  9. // ==/UserScript==
  10.  
  11. var elem = $("p:eq(2)>b");
  12. console.log(elem);
  13. var url = elem.text();
  14. var google = "https://www.google.com/?gws_rd=ssl#q=inurl:"+url+"+news";
  15. elem.html("<a href="+google+">"+url+"</a>");