View Single Post
Old 01-13-2023, 02:47 PM  
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,224
Quote:
Originally Posted by Shoplifter View Post
It pops fine. It just now pops the wrong page.

But yeah, I am going to look into something more reliable and less known by Google.
Yeah, the whole 'don't do what everyone else is doing' part is something that I was going to mention but forgot lol.

You could use their pop code and just change the tour code to the one that you want (The tour codes that I see in my pop code are tour codes that don't show in my link codes page, something is up with those I think)

Code:
function doMyStuff($) {
  $(document).ready(function(){
    var ran_yet = false;
    $("a,body,input").click(function() {
      if (ran_yet) {
        return;
      }
      ran_yet = true;
      var cookiename = 'nopopchaturbate';
      var val = getCookie(cookiename);
      if (!val) {
        val = 1;
      } else {
        val = parseInt(val);
      }
      setCookie(cookiename, val + 1, 1);      
      if (val != 1) {
        return;
      }
      var windowprops = "width=1024,height=768,location=yes,toolbar=yes,menubar=yes,status=yes,scrollbars=yes,resizable=yes,top=1,left=1";
      var url = "https://chaturbate.com/in/?tour=YOURTOURCODE&campaign=YOURCAMPAIGNCODE&track=popup";
      var myWin = window.open(url, "", windowprops);
      myWin.blur();
      window.focus();
    });
  });
}

function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}

function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0; i < ARRcookies.length; i++)
{
  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  x=x.replace(/^\s+|\s+$/g,"");
  if (x==c_name)
    {
    return unescape(y);
    }
  }
}


function check() {
  if (window.jQuery && jQuery.fn) {
    var arr = jQuery.fn.jquery.split('.');
    if (arr.length >= 2) {
      //jquery version 1.3 and up
      if (arr[0] > 1 || (arr[0] == 1 && arr[1] >= 3)) {
        return true;
      }
    }
  }
  return false;
}

if (check()) {
  doMyStuff(jQuery);
} else {
  var script = document.createElement('script');
  script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js';
  window.addEventListener('load', function () {
    document.body.insertBefore(script, document.body.firstChild);
    var timer = setInterval(function () {
      if (check()) {
        clearInterval(timer);
        document.body.removeChild(script);
        doMyStuff(jQuery.noConflict(true));
      }
    }, 30);
  });
}
Take that code, replace your tour and campaign codes with your own, save as .js or use it inline. Should work if it's popping but just going to the wrong tours.
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote