Aliexpress browse to next or previous page with keyboard

browse aliexpress search results to next or previous page using right and left keys

  1. // ==UserScript==
  2. // @name Aliexpress browse to next or previous page with keyboard
  3. // @description browse aliexpress search results to next or previous page using right and left keys
  4. // @author yoshkinawa
  5. // @match https://*.aliexpress.com
  6. // @license MIT
  7. // @version 0.0.1.20201109131907
  8. // @namespace https://gf.qytechs.cn/users/703241
  9. // ==/UserScript==
  10.  
  11. document.addEventListener('keydown', function(e) {
  12. switch (e.key) {
  13. case 'ArrowLeft':
  14. console.log('left');
  15. document.querySelector( 'BUTTON.next-prev' ).click();
  16. break;
  17. case 'ArrowRight':
  18. console.log('right');
  19. document.querySelector( 'BUTTON.next-next' ).click();
  20. break;
  21. }
  22.  
  23. })

QingJ © 2025

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