Google Autocomplete Keyword Tool

One click to save all autocomplete keywords on google

  1. // ==UserScript==
  2. // @name Google Autocomplete Keyword Tool
  3. // @namespace http://www.dennispot.net/
  4. // @version 0.2
  5. // @description One click to save all autocomplete keywords on google
  6. // @author www.dennispot.com
  7. // @match https://www.google.com/
  8. // @match https://www.google.com/?*
  9. // @match https://www.google.com.hk/
  10. // @match https://www.google.com.hk/?*
  11. // @require https://code.jquery.com/jquery-3.2.1.min.js
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16.  
  17. $('body').append("<textarea id='saveRightTextArea' style='top: 33%;height: 300px;right: 20px;width: 200px;position: fixed;z-index:10000;padding:10px;font-size:14px;'></textarea>");
  18.  
  19. var tmp = setInterval(function(){
  20. if($('.VlcLAe').length > 0){
  21. clearInterval(tmp);
  22. $('.aajZCb .VlcLAe center').append("<input id='saveRightbtn' type='button' value='Save all to Right' type='submit' style='background-image:-webkit-linear-gradient(top,#4285f4,#4285f4);background-color:#4285f4;color:#fff;border: 1px solid #f2f2f2;border-radius: 2px;cursor: default;font-family: arial,sans-serif;font-size: 13px;font-weight: bold;margin: 11px 4px;min-width: 54px;padding: 0 16px;text-align: center;height:36px;'>");
  23. }
  24. }, 100);
  25. $("body").on("click", "#saveRightbtn", function(){
  26. var val = $('#saveRightTextArea').val();
  27. $('ul.erkvQe li').each(function(){
  28. var txt = $(this).children('.sbtc').children('.sbl1').text();
  29. if(txt != ""){
  30. if(val != "")
  31. val = val + "\n" + txt;
  32. else
  33. val = txt;
  34. }
  35. });
  36. $('#saveRightTextArea').val(val)
  37. });
  38. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址