Kiko Pop Fix

Makes Kiko Pop Playable without Flash

  1. // ==UserScript==
  2. // @name Kiko Pop Fix
  3. // @license GNU GPLv3
  4. // @namespace https://lel.wtf
  5. // @version 1.07
  6. // @description Makes Kiko Pop Playable without Flash
  7. // @author Lamp
  8. // @match https://www.neopets.com/worlds/kiko/kpop/
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=neopets.com
  10. // @grant none
  11.  
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. if (document.getElementById("difficultyForm")) {
  16. document.getElementById("difficultyForm").remove();
  17. }
  18.  
  19. function kikoplay() {
  20. if (document.querySelector("#kikopop")) {
  21. document.querySelector("#kikopop").play()
  22. }
  23. }
  24.  
  25.  
  26. var kikofix = document.createElement("div");
  27. kikofix.id = "diffbuttons";
  28. kikofix.innerHTML = `<center>
  29. <div class="buttonfix" onclick="setDifficulty(1); prizebutton(1)" style="padding-top: 10px; margin: 0px auto 10px;">
  30. <b>EASY</b>
  31. </div>
  32. <div class="buttonfix" onclick="setDifficulty(2); prizebutton(2)" style="padding-top: 10px; margin: 0px auto 10px;">
  33. <b>MEDIUM</b>
  34. </div>
  35. <div class="buttonfix" onclick="setDifficulty(3); prizebutton(3)" style="padding-top: 10px; margin: 0px auto 10px;">
  36. <b>HARD</b>
  37. </div>
  38. </center>
  39.  
  40. `;
  41.  
  42. document.querySelector("#pageDesc").appendChild(kikofix);
  43.  
  44. var script = document.createElement("script");
  45.  
  46. script.type = "text/javascript";
  47. script.text = `
  48. function prizebutton(dif){
  49. document.getElementById('diffbuttons').remove();
  50. var kikofix = document.createElement('div');
  51. kikofix.id = "kikofix";
  52. kikofix.innerHTML = '<br><br><br><center><div class="buttonfix prizebutton" onclick="getResultfix('+dif+', true)" style="padding-top: 10px; margin: 0px auto 10px;"><b>GET PRIZE</b></div></center>';
  53. document.querySelector("#pageDesc").appendChild(kikofix);
  54.  
  55. }
  56.  
  57. function getResultfix(difficulty, hit) {
  58. document.getElementsByClassName('buttonfix')[0].remove();
  59. $.ajax({
  60. url: 'ajax/prize.php',
  61. data: { difficulty: difficulty },
  62. success: function(data) {
  63. if (data.success) {
  64. prize = data.prize;
  65. avatar = data.avatar;
  66. $('#prizeButton').show('fast');
  67. }
  68. else{
  69. alert("Sorry, you didn't win anything this time. :(");
  70. }
  71. }
  72. });
  73. }
  74. `;
  75.  
  76. document.head.appendChild(script);
  77.  
  78. var style = document.createElement("style");
  79. style.type = "text/css";
  80. style.innerHTML = `
  81.  
  82. .buttonfix {
  83.  
  84. width: 190px;
  85. height: 30px;
  86. font-family: Verdana, Arial, Helvetica, sans-serif;
  87. font-size: 9pt;
  88. ;
  89. background: url(https://images.neopets.com/games/dart/buttons/bg.png) -560px 0 no-repeat;
  90. cursor: pointer;
  91. }
  92.  
  93. .prizebutton{
  94. position:relative;
  95. top: 300px;
  96. left:500px;
  97.  
  98. }
  99.  
  100. #kikofix{
  101.  
  102. position: relative;
  103. z-index: 9;
  104. width: 190px;
  105. height: 39px;
  106.  
  107. }
  108.  
  109. #diffbuttons{
  110. top: 300px;
  111. left:500px;
  112. position: relative;
  113. z-index: 9;
  114. width: 190px;
  115. height: 39px;
  116.  
  117. }
  118.  
  119. #kikofix b, #diffbuttons b{
  120.  
  121. color: black !important;
  122.  
  123. }
  124.  
  125. `;
  126.  
  127. document.getElementsByTagName("html")[0].appendChild(style);
  128.  
  129. setTimeout(kikoplay, 1500);
  130. })();

QingJ © 2025

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