Professional Documents
Culture Documents
//
//
//
//
//
//
//
//
//
==UserScript==
@name
@version 4.3
@namespace
@description
@include
@include
@grant
@run-at
==/UserScript==
chaturbate
chaturbate_goes_droopy
chaturbate-add free
http://chaturbate.com/*
http://*.chaturbate.com/*
GM_xmlhttpRequest
document-start
version = 4.3;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++
// removes all advertisements
// inserts a new video box if your banned or blocked
// fullscreen does not work in a protectected room so i made a zoom function
// external links are no longer redirected
// it should be google chrome compatible
// full suppoter profile , PM , font color etc.
// v3.5 several bug fix (banned rooms) , mute tip sound , remove floating images
, zoom in banned room video
// v3.6 better removal of floating images, skip age confirm should now work on c
hrome too
// v3.7 better removal of add's
// v3.8 add removal at first load, better cleaning of profiles with floating ima
ges
// v3.9 No more supporter options, rooms filter options on tab bar
// v4.0 skipped due to comatibility problem
// v4.1 fixed no access room video , improved sub-selection
// v4.2 temp fix
// v4.3 fix auto refresh in no access rooms, tested with firefox (with chrome it
may or may not work)
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++
createCookie("agreeterms","1",30);
if (!readCookie("noads")){createCookie("noads","1",30);window.location.r
eload()}
function do_script() {
// check for updates once per session
if (!readCookie("updatecheck")){update()}
// use unused add space
ad = document.getElementsByClassName('ad');
verstr='<strong>Made add free by Ladroop </strong><br>V '+version;
if(document.getElementById("player")){verstr=verstr+'<br><label> Mute ti
p sound: </label><input type="checkbox" id="tipmute">'}
if (ad[0]){ad[0].innerHTML=verstr}
// advert options on menu bars
bar=document.getElementById("nav");
if (bar){
barl=bar.getElementsByTagName('li');
i=barl.length-1;
while (i != -1){
d=barl[i].innerHTML;
[0];
if (version){createCookie("CBversion",version.getAttribute("data"),1,"ch
aturbate.com");clearInterval(t)}
},5000)
}}
}
// if you have no access then create a new video box
area = document.getElementsByClassName('block')[0];
if (area){
if (area.innerHTML.length < 600){
loc=document.location.href.split("/");
preformer=loc[3];if(preformer=="p"){preformer=loc[4]}
document.title = preformer+"'s No Access Room";
makevid (preformer)}}
//fix external links redirection
var link = document.getElementsByTagName('a');
for (i=0; i<link.length; i++){
if (link[i].href.indexOf('?url=') != -1){
linkhref=unescape(link[i].href);
newlinkhref=linkhref.substring(linkhref.indexOf("?url=")+5,linkhref.inde
xOf("&domain"));
link[i].href=newlinkhref}}
}
// cookie functions
function createCookie(name,value,days,domain){
if (domain){
var domain=";domain=."+domain;
}else var domain = "";
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}else var expires = "";
document.cookie = name+"="+value+expires+"; path=/"+domain;
}
function eraseCookie(name,domain){
createCookie(name,"",-1,domain);
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
// create video box with image
function makevid(preformer){
// image
data
servers=new Array("","-a","-b");
server = servers[Math.floor(Math.random()*3)];//0-1-2
servnr=Math.floor(Math.random()*13)+1;// 1 - 13