Advertisement
aminsbd

auto search produk tokped

Oct 9th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. BELUM FIX
  2.  
  3. javascript:var jan = document.getElementsByClassName('shopee-chat__info')[0];
  4. var str = jan.getElementsByClassName('shopee-chat__name')[0].textContent;
  5.  
  6. str = str.replace(/DISKON /gi, "");
  7. str = str.replace(/BEST SELLER! /gi, "");
  8. str = str.replace(/HOT!! /gi, "");
  9. str = str.replace(/PROMO! /gi, "");
  10. str = str.replace(/RESTOCK! /gi, "");
  11. str = str.replace(/EKSLUSIF! /gi, "");
  12. str = str.replace(/LIMITED!! /gi, "");
  13. str = str.replace(/TERBATAS! /gi, "");
  14.  
  15.  
  16. function openInNewTab(url) {
  17. var win = window.open(url, '_blank');
  18. win.focus();
  19. }
  20. openInNewTab("https://www.tokopedia.com/search?st=product&q="+str);
  21.  
  22.  
  23. ________________________________
  24.  
  25. FIX ORDER
  26.  
  27. javascript:var jan = document.getElementsByClassName('product-name')[0].textContent;
  28. str = str.replace(/DISKON /gi, "");
  29. str = str.replace(/BEST SELLER! /gi, "");
  30. str = str.replace(/HOT!! /gi, "");
  31. str = str.replace(/PROMO! /gi, "");
  32. str = str.replace(/RESTOCK! /gi, "");
  33. str = str.replace(/EKSLUSIF! /gi, "");
  34. str = str.replace(/LIMITED!! /gi, "");
  35. str = str.replace(/TERBATAS! /gi, "");
  36.  
  37.  
  38. function openInNewTab(url) {
  39. var win = window.open(url, '_blank');
  40. win.focus();
  41. }
  42. openInNewTab("https://www.tokopedia.com/search?st=product&q="+str);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement