Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const $targetRead = $('#tool-type');
- const $form = $('#tool-type-form');
- const $input = $('#tool-type-word');
- const $sendMessage = $('#targetmessage-button-send');
- let enableAutoHack = false;
- const hackSpeed = 30;
- function init() {
- let $button = $('<input id="auto-hack" type="checkbox">');
- let $labelHack = $('<label for="auto-hack">Auto-hack</label>');
- $button.css({
- 'min-width': '100px'
- });
- $button.change( function() {
- enableAutoHack = $(this).is(':checked');
- });
- $form
- .parent()
- .append($button)
- .append($labelHack);
- $input.attr('autocomplete', 'on');
- }
- function hack() {
- const typeThis = $targetRead.text();
- if(!typeThis || typeThis.length <= 1){
- $sendMessage.click();
- return;
- }
- $input.val(typeThis);
- $form.submit();
- }
- init();
- setInterval( () => {
- if(enableAutoHack){
- hack();
- }
- }, hackSpeed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement