Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name bmos
- // @namespace http://your.homepage/
- // @version 0.1
- // @description enter something useful
- // @author Ahlid
- // @match http://omerta.pt/*
- // @match https://omerta.pt/*
- // @grant none
- // ==/UserScript==
- setTimeout(function(){
- // update();
- setInterval(control,2500);
- setInterval(controlClickandJail,20000)
- },15000);
- function control(){
- if(!IHaveCatpcha()&&!ClickLimitG()&&!ImInJail()){
- if ($(location).attr('href').indexOf('jail.php') == -1){
- $('[accesskey="J"]').click();
- }
- if(!ClickLimitG()&&!IHaveCatpcha()&&!ImInJail()){
- setTimeout(function(){
- $('[value="Bust out"]').click();
- console.log('bust');
- },1000);
- }
- }
- }
- function controlClickandJail(){
- if(ClickLimitG()||ImInJail()){
- $('[accesskey="J"]').click();
- console.log('yh');
- }
- }
- function ClickLimitG() {
- var GotClicks = false;
- var bs = document.getElementById('game_container').innerHTML;
- if (bs.indexOf('You reached your click limit') != -1) {
- GotClicks = true;
- $('[accesskey="A"]').click();
- }
- return GotClicks;
- }
- function IHaveCatpcha() {
- if (document.getElementById('recaptcha-popup')) {
- if(aviso==true){
- alert("Solve captcha");
- aviso=false;
- }
- return true;
- }else{
- aviso=true;
- }
- }
- function ImInJail(){
- var InJail = false;
- if(document.body.innerHTML.indexOf('criminal.jpg') != -1) {
- InJail = true;
- }
- return InJail;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement