[Torn] Quick Slots Animation

Reduces the animation speed for slots in Torn.

  1. // ==UserScript==
  2. // @name [Torn] Quick Slots Animation
  3. // @namespace https://www.github.com/TravisTheTechie
  4. // @version 1.0
  5. // @description Reduces the animation speed for slots in Torn.
  6. // @author Travis Smith
  7. // @match https://www.torn.com/page.php?sid=slots
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=torn.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12. /* jshint esversion: 11 */
  13. (function() {
  14. 'use strict';
  15.  
  16. $.ajaxSetup({
  17. dataFilter: ajaxFilter
  18. });
  19.  
  20. function ajaxFilter(data) {
  21. if (!data) return data;
  22.  
  23. try {
  24. var tempData = JSON.parse(data);
  25. if (tempData?.barrelsAnimationSpeed) {
  26. tempData.barrelsAnimationSpeed = parseInt(tempData.barrelsAnimationSpeed / 10);
  27. data = JSON.stringify(tempData);
  28. }
  29. } catch {
  30. console.error('error parsing during AJAX dataFilter');
  31. }
  32. return data;
  33. }
  34. })();

QingJ © 2025

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