ZSMTurker's Piotr Script

Automatically selects the first two options and adds hotkey shortcuts.

  1. // ==UserScript==
  2. // @author ZSMTurker
  3. // @name ZSMTurker's Piotr Script
  4. // @namespace https://gf.qytechs.cn/users/2291
  5. // @description Automatically selects the first two options and adds hotkey shortcuts.
  6. // @require http://code.jquery.com/jquery-latest.min.js
  7. // @match https://www.deyde.com/*
  8. // @version 0.1
  9. // ==/UserScript==
  10.  
  11. $( document ).ready( function() {
  12. $( 'button[name="cancel"]' ).eq( 0 ).css('float','right');
  13. $( 'button[name="check"]' ).eq( 0 ).css('float', 'left');
  14. $('#priceCluster-1').click();
  15. $('#offerCluster-1').click();
  16. document.addEventListener( "keydown", elPiotr, false );
  17. } );
  18.  
  19. function elPiotr( i ) {
  20. if ( i.keyCode == 49 ) { //1
  21. $( 'button[name="check"]' ).eq( 0 ).css('background-color', '#ffffff');
  22. $( 'button[name="check"]' ).eq( 0 ).click();
  23. }
  24. if ( i.keyCode == 50 ) { //2
  25. $( 'button[name="cancel"]' ).eq( 0 ).css('background-color', '#ffffff');
  26. $( 'button[name="cancel"]' ).eq( 0 ).click();
  27. }
  28. if ( i.keyCode == 191 && i.shiftKey ) { //? Key - Shows Keys
  29. piotrCount++;
  30. alert(' 1 - Approve \n 2 - Reject');
  31. }
  32. }

QingJ © 2025

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