Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         bmos
  3. // @namespace    http://your.homepage/
  4. // @version      0.1
  5. // @description  enter something useful
  6. // @author       Ahlid
  7. // @match        http://omerta.pt/*
  8. // @match        https://omerta.pt/*
  9. // @grant        none
  10. // ==/UserScript==
  11. aviso=true;
  12. setTimeout(function(){
  13.    // update();
  14.      setInterval(control,1500);
  15.     setInterval(controlClickandJail,20000)
  16. },15000);
  17.  
  18. function control(){
  19.  
  20.     if(!IHaveCatpcha()&&!ClickLimitG()&&!ImInJail()){
  21.         if ($(location).attr('href').indexOf('jail.php') == -1){
  22.             $('[accesskey="J"]').click();
  23.         }
  24.         if(!ClickLimitG()&&!IHaveCatpcha()&&!ImInJail()){
  25.             setTimeout(function(){
  26.                 $('[value="Bust out"]').click();
  27.                 console.log('bust');
  28.             },1000);
  29.         }
  30.  
  31.     }
  32. }
  33. function controlClickandJail(){
  34.     if(ClickLimitG()||ImInJail()){
  35. $('[accesskey="J"]').click();
  36.         console.log('yh');
  37.     }
  38. }
  39.  
  40. function ClickLimitG() {
  41.     var GotClicks = false;
  42.  
  43.     var bs = document.getElementById('game_container').innerHTML;
  44.  
  45.     if (bs.indexOf('You reached your click limit') != -1) {
  46.  
  47.         GotClicks = true;
  48.         $('[accesskey="A"]').click();
  49.     }
  50.  
  51.     return GotClicks;
  52. }
  53.  
  54. function IHaveCatpcha() {
  55.     if (document.getElementById('recaptcha-popup')) {
  56.         if(aviso==true){
  57.             alert("Solve captcha");
  58.             aviso=false;
  59.         }
  60.         return true;
  61.     }else{
  62.         aviso=true;
  63.  
  64.     }
  65.  
  66. }
  67.  
  68.  
  69. function ImInJail(){
  70.     var InJail = false;
  71.  
  72.     if(document.body.innerHTML.indexOf('criminal.jpg') != -1) {
  73.         InJail = true;
  74.     }
  75.  
  76.     return InJail;
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement