Roblox Action Searcher

Good tool for roblox!

  1. // ==UserScript==
  2. // @name Roblox Action Searcher
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Good tool for roblox!
  6. // @author YT_Xaos
  7. // @match https://www.roblox.com/home
  8. // @include https://www.roblox.com/*
  9. // @homepage https://flounder.epizy.com/
  10. // @icon https://images.rbxcdn.com/23421382939a9f4ae8bbe60dbe2a3e7e.ico.gzip
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. // New scrollbar :)
  17. let scrollbar = document.createElement('style');
  18. scrollbar.innerHTML = `
  19. ::-webkit-scrollbar {
  20. width: 15px;
  21. }
  22. ::-webkit-scrollbar-track {
  23. display: none;
  24. }
  25. ::-webkit-scrollbar-thumb {
  26. background: #888;
  27. border-radius: 5px;
  28. }
  29. ::-webkit-scrollbar-thumb:hover {
  30. background: #555;
  31. }
  32. `
  33. document.head.appendChild(scrollbar);
  34. // Snackbar for errors
  35. let snackbar = document.createElement('style');
  36. snackbar.innerHTML = `
  37. #snackbar {
  38. visibility: hidden;
  39. min-width: 250px;
  40. margin-left: -125px;
  41. background-color: #333;
  42. color: #fff;
  43. text-align: center;
  44. border-radius: 2px;
  45. padding: 16px;
  46. position: fixed;
  47. z-index: 1;
  48. left: 50%;
  49. bottom: 30px;
  50. font-size: 17px;
  51. border-radius: 10px;
  52. }
  53.  
  54. #snackbar.show {
  55. visibility: visible;
  56. -webkit-animation: snackin 0.5s, snackout 0.5s 2.5s;
  57. animation: snackin 0.5s, snackout 0.5s 2.5s;
  58. }
  59.  
  60. @-webkit-keyframes snackin {
  61. from {bottom: 0; opacity: 0;}
  62. to {bottom: 30px; opacity: 1;}
  63. }
  64.  
  65. @keyframes snackin {
  66. from {bottom: 0; opacity: 0;}
  67. to {bottom: 30px; opacity: 1;}
  68. }
  69.  
  70. @-webkit-keyframes snackout {
  71. from {bottom: 30px; opacity: 1;}
  72. to {bottom: 0; opacity: 0;}
  73. }
  74.  
  75. @keyframes snackout {
  76. from {bottom: 30px; opacity: 1;}
  77. to {bottom: 0; opacity: 0;}
  78. }
  79. #snackbar2{
  80. visibility: hidden;
  81. min-width: 250px;
  82. margin-left: -125px;
  83. background-color: #333;
  84. color: #fff;
  85. text-align: center;
  86. border-radius: 2px;
  87. padding: 16px;
  88. position: fixed;
  89. z-index: 1;
  90. left: 50%;
  91. bottom: 30px;
  92. font-size: 17px;
  93. border-radius: 10px;
  94. }
  95.  
  96. #snackbar2.show {
  97. visibility: visible;
  98. -webkit-animation: snackin 0.5s, snackout 0.5s 2.5s;
  99. animation: snackin 0.5s, snackout 0.5s 2.5s;
  100. }
  101. `
  102. document.head.appendChild(snackbar);
  103. // The actual snackbar
  104. let ssnackbar = document.createElement('div');
  105. ssnackbar.setAttribute('id', 'snackbar');
  106. ssnackbar.innerHTML = 'We can\'t search for nothing'
  107. document.querySelector('.content').appendChild(ssnackbar);
  108. let snackbar2 = document.createElement('div');
  109. snackbar2.setAttribute('id', 'snackbar2');
  110. snackbar2.innerHTML = 'Made by YT_Xaos';
  111. document.querySelector('.content').appendChild(snackbar2);
  112. let x = document.getElementById("snackbar2");
  113. x.className = "show";
  114. setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
  115. // Set a timeout to load everything
  116. setTimeout(() => {
  117. // Create the button
  118. let actions = document.createElement('button');
  119.  
  120. // Attributes
  121. actions.setAttribute('title', 'Search Actions');
  122. actions.setAttribute('style', 'color: black; margin: 4px; outline: none; border: none; background: transparent; position: absolute; right: 334px;');
  123. actions.innerHTML = "<span class='icon-nav-search'></span>";
  124.  
  125. // Add an onclick event for the search
  126. actions.addEventListener('click', () => {
  127. let list = document.createElement('datalist');
  128. list.setAttribute('id', 'new-data');
  129. list.innerHTML = `
  130. <option value="reload">
  131. <option value="close/x">
  132. <option value="home/dashboard">
  133. <option value="url/href/link">
  134. <option value="/on hashchange alert">
  135. <option value="/on windowclick close">
  136. `
  137. document.querySelector('.content').appendChild(list);
  138. actions.style.pointerEvents = 'none';
  139. actions.style.opacity = '0.7';
  140. let input = document.createElement('input');
  141. input.setAttribute('id', 'navbar-search');
  142. input.setAttribute('placeholder', 'Search');
  143. input.setAttribute('maxlenght', '120');
  144. input.setAttribute('list', 'new-data');
  145. input.setAttribute('autocomplete', 'off');
  146. input.setAttribute('style', 'position: absolute; top: 5px; left: 450px; width: 25%; border: 1px solid lightgrey; outline: none; z-index: 9999;');
  147. input.className = "form control input-field";
  148. document.querySelector('.content').appendChild(input);
  149. let searchbtn = document.createElement('input');
  150. searchbtn.setAttribute('type', 'submit');
  151. searchbtn.setAttribute('style', 'outline: none; background: transparent; position: absolute; right: 380px; top: 9px; border: none; z-index: 9999;');
  152. searchbtn.value = "Go";
  153. searchbtn.addEventListener('click', () => {
  154. let search = document.getElementById('navbar-search').value;
  155. console.log(search)
  156. // Actions:
  157. if (search === 'reload') {
  158. window.location.reload();
  159. }
  160. if (search.length === 0) {
  161. let x = document.getElementById("snackbar");
  162. x.className = "show";
  163. setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
  164. }
  165. if (search === 'x' || search === 'close') {
  166. input.remove();
  167. searchbtn.remove();
  168. actions.style.pointerEvents = 'auto';
  169. actions.style.opacity = '1';
  170. }
  171. if (search === 'home' || search === 'dashboard') {
  172. window.location = 'https://www.roblox.com/home';
  173. }
  174. if (search === 'url' || search === 'href' || search === 'link') {
  175. alert(window.location.href);
  176. }
  177. if (search === 'path' || search == '/') {
  178. alert(window.location.pathname);
  179. }
  180. // Commands:
  181. if (search === '/on hashchange alert') {
  182. document.addEventListener('hashchange', () => {
  183. alert(location.hash)
  184. });
  185. }
  186. if (search === '/on windowclick close') {
  187. window.onclick = () => {
  188. input.remove();
  189. searchbtn.remove();
  190. actions.style.pointerEvents = 'auto';
  191. actions.style.opacity = '1';
  192. }
  193. }
  194. });
  195. document.querySelector('.content').appendChild(searchbtn);
  196. });
  197.  
  198. // Make it appear in the right place
  199. document.querySelector('.navbar-right').appendChild(actions);
  200. }, 500);
  201. })();

QingJ © 2025

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