Lexia Core 5 Reading UI (DOES NOT WORK, DONT USE)

Custom UI for Lexia Core 5 Reading

  1. // ==UserScript==
  2. // @name Lexia Core 5 Reading UI (DOES NOT WORK, DONT USE)
  3. // @namespace http://tampermonkey.net/
  4. // @version 999999
  5. // @description Custom UI for Lexia Core 5 Reading
  6. // @author fdslalkad
  7. // @match *://*.lexiacore5.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. let menuVisible = true;
  15. const menu = document.createElement('div');
  16. menu.style.position = 'fixed';
  17. menu.style.top = '10px';
  18. menu.style.right = '10px';
  19. menu.style.width = '200px';
  20. menu.style.backgroundColor = 'rgba(255, 255, 255, 0.8)';
  21. menu.style.border = '1px solid #000';
  22. menu.style.padding = '10px';
  23. menu.style.zIndex = '9999';
  24. menu.style.display = 'block';
  25. menu.draggable = true;
  26.  
  27. const createButton = (text, callback) => {
  28. const button = document.createElement('button');
  29. button.innerText = text;
  30. button.style.margin = '5px';
  31. button.onclick = callback;
  32. menu.appendChild(button);
  33. };
  34.  
  35. createButton('Correct Answer', () => {
  36. // Logic to get and input the correct answer
  37. });
  38.  
  39. let autoBotActive = false;
  40. createButton('AutoBot', () => {
  41. autoBotActive = !autoBotActive;
  42. // Logic to start/stop the AutoBot
  43. });
  44.  
  45. createButton('Finish Level', () => {
  46. alert("Yeahhh.. That's WAY too hard.");
  47. });
  48.  
  49. createButton('Change Units', () => {
  50. const units = prompt("What would you like to set your Units to?");
  51. if (units) {
  52. // Logic to set units
  53. }
  54. });
  55.  
  56. createButton('Change Minutes', () => {
  57. const minutes = prompt("What would you like to set your Minutes to?");
  58. if (minutes) {
  59. // Logic to set minutes
  60. }
  61. });
  62.  
  63. createButton('Logout', () => {
  64. // Logic to log out
  65. });
  66.  
  67. document.body.appendChild(menu);
  68.  
  69. document.addEventListener('keydown', (event) => {
  70. if (event.key === 'q') {
  71. menuVisible = !menuVisible;
  72. menu.style.display = menuVisible ? 'block' : 'none';
  73. }
  74. });
  75. })();