Bots Home
|
Create an App
Camrushy1
Author:
fuckingboy79
Description
Source Code
Launch Bot
Current Users
Created by:
Fuckingboy79
// ==UserScript== // @name Chaturbate Clean // @description removes all add's, sub-selector on the tab's, shows video if you have no access, full screen with chat // @version 3.4 // @updateURL https://openuserjs.org/meta/ladroop/Chaturbate_Clean.meta.js // @namespace chaturbate_goes_ladroop // @match https://*.chaturbate.com/* // @exclude https://blog.chaturbate.com/* // @exclude https://secure.chaturbate.com/* // @exclude https://*.chaturbate.com/apps/* // @exclude https://*.chaturbate.com/tipping/* // @exclude https://*.chaturbate.com/embed/* // @exclude https://*.chaturbate.com/accounts/welcome/* // @exclude https://*.chaturbate.com/accounts/register/* // @noframes // @grant none // @run-at document-end // @license MIT // @copyright 2018, ladroop (https://openuserjs.org/users/ladroop) // ==/UserScript== !function(){'use strict'; //prevents the script from throwing errors to CB's own error logger and maybe some part of the script keeps working if they make changes again window.onerror=function(){return!0}, // to skip agree screen createCookie("agreeterms","1",30), // this cookie removes most add's readCookie("noads")||(createCookie("noads","1",30),window.location.reload(!0)), // initial player size readCookie("player_width")||createCookie("player_width","640",1); // locations var thumbpage=!1,campage=!1,theaterpage=!1,banpage=!1,broadcastpage=!1,passwordpage=!1,colpage=!1,bio=!1,bioarea="",varea="",elem="",HLS="",ad="",tags="",newelem="",n=0,i=0,p=0,br="",ofils="",isfullscreen=!1,myfullscreen=!1,orgplayerw=0,orgplayerh=0,win=window.wrappedJSObject?window.wrappedJSObject:window,pos1=0,pos2=0,pos3=0,pos4=0,x=0,y=0,thcleanurl="https://openuserjs.org/install/ladroop/cb_theatermode_clean.user.js",affkey="?tour=4uT2&campaign=hgg5k&track=earntokens",affid="hgg5k"; // do things on selected pages if( // first check where we are and set some locations // theaterpage , thumbnail page , online cam page (bio + cam), offline cam page or /p/ (only bio), you're banned page, broadcast page, my collection page, password page "Chaturbate Theater Mode"==document.title&&(theaterpage=!0),"b"==document.location.href.split("/")[3]&&(broadcastpage=!0),"roomlogin"==document.location.href.split("/")[3]&&(passwordpage=!0),"photo_videos"!=document.location.href.split("/")[3]&&"my_collection"!=document.location.href.split("/")[3]||document.getElementById("player")&&(colpage=!0),(document.getElementsByClassName('c-1 endless_page_template')[0]||document.getElementsByClassName('tag_row')[0]||document.getElementsByClassName('list followers')[0])&&(thumbpage=!0),document.getElementsByClassName('bio')[0]&&(bioarea=document.getElementsByClassName('bio')[0],bio=!0),document.getElementById("player")&&!colpage&&(elem=document.getElementById("defchat").getElementsByClassName("section")[0],campage=!0),document.getElementsByClassName('block')[0]&&(document.getElementsByClassName('block')[0].id||(banpage=!0)),theaterpage)! // update if theatermode function(){setTimeout(function(){if(!document.getElementById("update")){var newelem=document.createElement('div');newelem.style.position="absolute",newelem.style.top="10px",newelem.style.left="255px",newelem.style.fontSize="12px",newelem.style.color="#0b5d81",newelem.style.fontWeight="bold",newelem.id="update",newelem.innerHTML="<b>Please install the chaturbate theater mode script made by ladroop.<br> Click <a href='"+thcleanurl+"'> here </a> to install.</b>",document.getElementsByTagName("div")[0].appendChild(newelem)}},8e3)} //remove the add's ();else if(colpage)! // save vid function(){(newelem=document.createElement('a')).href=win.playerSettings.videoFile,newelem.target="_blank",newelem.innerHTML="Right click, save to disk.",newelem.style.backgroundColor="white",newelem.style.marginLeft="20px",document.getElementsByTagName("body")[0].appendChild(newelem)} // get the HLS link ();else if(function(){(ad=document.getElementsByClassName('ad')[0])&&(ad.style.zIndex="9999",ad.style.position="absolute",ad.innerHTML='<strong>Chaturbate Clean V'+GM_info.script.version+' Made by Ladroop.</strong> <br>');( // support me function(){if(!document.getElementById('user_information')){if(-1!=document.location.search.indexOf(affid))return void(document.location.href="/accounts/register/");readCookie("tnx")||(document.getElementsByClassName("creat")[0].href="#",document.getElementsByClassName("creat")[0].addEventListener("click",support2),thumbpage&&(ad.innerHTML=ad.innerHTML+"<strong>Please support this script. <a href=# id='support'><font color='red'>Click here to sign up for a new account.</font></a></strong>",document.getElementById("support").addEventListener("click",support2)))}})(),(ad=document.getElementsByClassName('featured_blog_posts')[0])&&(ad.style.display="none");(ad=document.getElementsByClassName('featured_text')[0])&&(ad.style.display="none")}(),passwordpage)cleanbar();else if(thumbpage)! // make a subselector on a thumbpage function(){if(createCookie("selected",document.location.href,1),-1==document.location.href.indexOf("spy-on-cams")&&-1==document.location.href.indexOf("followed-cams")&&-1==document.location.href.indexOf("/tag")){newelem=document.createElement('li');var data="<form><select id=\"subsel\" style=\"margin: 0px 0px 0px 0px; background: #DDE9F5; color:#5E81A4; border-radius: 4px 4px 0px 0px;padding: 3px 1px 4px 12px; font-weight: 400; font-size: 13px; font-family: 'UbuntuMedium',Arial,Helvetica,sans-serif;\" ><option value=\"/XX-cams\">ALL CAMS IN CATEGORY</option><option value=\"/exhibitionist-cams/XX\">EXHIBITIONIST CAMS</option><option value=\"/hd-cams/XX\">HD CAMS</option><option value=\"/new-cams/XX\">NEW CAMS</option><option value=\"/teen-cams/XX\">TEEN CAMS (18+)</option><option value=\"/18to21-cams/XX\">18 TO 21 CAMS</option><option value=\"/21to35-cams/XX\">21 TO 35 CAMS</option><option value=\"/30to50-cams/XX\">30 TO 50 CAMS</option><option value=\"/mature-cams/XX\">MATURE CAMS (50+)</option><option value=\"/north-american-cams/XX\">NORTH AMERICAN CAMS</option><option value=\"/euro-russian-cams/XX\">EURO RUSSIAN CAMS</option><option value=\"/south-american-cams/XX\">SOUTH AMERICAN CAMS</option><option value=\"/asian-cams/XX\">ASIAN CAMS</option><option value=\"/other-region-cams/XX\">OTHER REGION CAMS</option><option value=\"/6-tokens-per-minute-private-cams/XX\">6 TOKENS PER MINUTE</option><option value=\"/12-tokens-per-minute-private-cams/XX\">12 TOKENS PER MINUTE</option><option value=\"/18-tokens-per-minute-private-cams/XX\">18 TOKENS PER MINUTE</option><option value=\"/30-tokens-per-minute-private-cams/XX\">30 TOKENS PER MINUTE</option><option value=\"/60-tokens-per-minute-private-cams/XX\">60 TOKENS PER MINUTE</option><option value=\"/90-tokens-per-minute-private-cams/XX\">90 TOKENS PER MINUTE</option></select></form>",uloc=document.location.href+"//",loc=uloc.split("/"),check=loc[3]+loc[4],gen="";-1!=check.indexOf("male")&&(gen="male"),-1!=check.indexOf("female")&&(gen="female"),-1!=check.indexOf("couple")&&(gen="couple"),-1!=check.indexOf("trans")&&(gen="trans"),data=data.replace(/XX/gi,gen),""===gen&&(data=data.replace("-cams","")),data=data.replace('<option value="/'+loc[3],'<option selected value="/'+loc[3]),newelem.innerHTML=data,document.getElementsByClassName('sub-nav')[0].appendChild(newelem),document.getElementById("subsel").addEventListener('change',subselected)}} // go to the selected page ();else{if(banpage)return cleanbar(),void // jpg player for banned rooms and kill all timers function(){"p"==(br=document.location.href.split("/")[3])&&(br=document.location.href.split("/")[4]);(newelem=document.createElement('div')).setAttribute("style","clear:both;float:left;margin-left:10px;margin-top:10px;margin-bottom:10px;margin-right:200px;border-width:5px;border-style:double;resize:both;overflow:hidden;width: 640px; height: 480px;"),newelem.innerHTML="<img id='vidimg' src='https://ssl-ccstatic.highwebmedia.com/images/cam_notice_background.jpg' height=100% width=100%></img>",newelem.id="vborder",document.getElementsByClassName('block')[0].appendChild(newelem),p=1;var cimg=new Image;for(cimg.onload=function(){document.getElementById("vborder").style.borderColor="green",document.getElementById("vidimg").src=cimg.src,setTimeout(function(){cimg.src='https://cbjpeg-serve.stream.highwebmedia.com/stream?room='+br+'&f='+(new Date).getTime(),p=1},100)},cimg.onerror=function(){document.getElementById("vborder").style.borderColor="red",++p>60&&(p=60),setTimeout(function(){cimg.src='https://cbjpeg-serve.stream.highwebmedia.com/stream?room='+br+'&f='+(new Date).getTime()},100*p)},cimg.src='https://cbjpeg-serve.stream.highwebmedia.com/stream?room='+br+'&'+(new Date).getTime(),i=1;i<9999;i++)win.clearInterval(i)} // make a clean profile button and call cleaninit() ();bio&&(cleanbar(),function(){(newelem=document.createElement('li')).style.display="none",newelem.id="hclean",newelem.innerHTML="<div class='button_share'> <a href=# id='clean' >CLEAN PROFILE = OFF</a></div>",newelem.addEventListener('click',cleancookie),document.getElementsByClassName("socials")[0].appendChild(newelem), //mark elements that can be hidden in the profile make clean button visible and call cleanup() function(){var taglist=["a","p","i","strong","b","u","ul","ol","li","h1","h2","h3","img","font","br"];for(i=0;i<taglist.length;i++)for(tags=bioarea.getElementsByTagName(taglist[i]),n=0;n<tags.length;n++)tags[n].style.position&&(-1==tags[n].style.position.indexOf("absolute")&&-1==tags[n].style.position.indexOf("fixed")||(tags[n].setAttribute("name","clean"),p++));0!==p&&(document.getElementById("hclean").style.display="block",cleanup())} // swap profile cleanup cookie and call cleanup() ()} // make a full screen button,exit full screen button, fix html5 video area size bug, app area bug and set full screen handler (), // fix the redirection links in the profile function(){for(tags=bioarea.getElementsByTagName('a'),i=0;i<tags.length;i++)-1!=tags[i].href.indexOf('?url=')&&(tags[i].href=decodeURIComponent(tags[i].href).split("?url=")[1])} // hide the lock on paid profile pictures (),function(){for(tags=bioarea.getElementsByTagName('img'),i=0;i<tags.length;i++)-1!=tags[i].src.indexOf('highwebmedia.com/images/locked_rectangle')&&(tags[i].style.display="none")} // full screen open (),setTimeout(function(){! //set interesting defchat settings in profile function(){"0"!==win.defchat_settings.private_price?wprof("Private:",win.defchat_settings.private_price+" Tk/min"):wprof("Private:","Disabled");"0"!==win.defchat_settings.private_price&&("0"!==win.defchat_settings.spy_price?wprof("Spy:",win.defchat_settings.spy_price+" Tk/min"):wprof("Spy:","Disabled"));"0"!==win.defchat_settings.group_price?wprof("Group:",win.defchat_settings.group_price+" Tk/min"):wprof("Group:","Disabled");win.defchat_settings.allow_tipping||wprof("Status:","Exhibitionist");campage||wprof("Last room topic:",decodeURIComponent(win.defchat_settings.default_subject))}()},500)),broadcastpage?cleanbar():campage&&(function(){(newelem=document.createElement('li')).innerHTML="<div class='button_share'> <a href=#>FULL SCREEN WITH CHAT</a></div>",newelem.addEventListener('click',fullscreenapi),document.getElementsByClassName("socials")[0].appendChild(newelem),(newelem=document.createElement('div')).id="fsclose",newelem.className="button_share",newelem.innerHTML="<a href=#>EXIT FULL SCREEN</a>",newelem.style.position="absolute",newelem.style.borderRadius="4px",newelem.style.right="60px",newelem.style.marginTop="-40px",newelem.style.display="none",newelem.addEventListener("click",closeFullscreen),document.getElementsByClassName("video-box")[0].appendChild(newelem),document.getElementById("still_video_object_html5_api")&&(document.getElementById("player").style.height=parseInt(document.getElementById("player").style.height)-32+"px",sizeadj());document.getElementsByClassName("tip_shell")[0].style.width="100%",document.addEventListener('webkitfullscreenchange',exitHandler,!1),document.addEventListener('mozfullscreenchange',exitHandler,!1),document.addEventListener('fullscreenchange',exitHandler,!1)} // make video controls, set filter (), // functions in random order // wait till video is initialized and make video controls function getvid(){if(document.getElementById("xmovie")||document.getElementById("still_video_object_html5_api"))varea=document.getElementById("xmovie")?document.getElementById("xmovie"):document.getElementById("still_video_object_html5_api"),controlsbutton();else{if(10==++n)return varea=document.getElementById("player"),void controlsbutton();setTimeout(function(){getvid()},100)}}(),function(){for(tags=document.getElementsByTagName("script"),n=1;n<tags.length;n++)if(!tags[n].src&&-1!=tags[n].innerHTML.indexOf(".m3u8")){HLS="https://"+tags[n].innerHTML.split("src='https://")[1].split(".m3u8")[0]+".m3u8";break}} // options on menu bar on a cam page , only show link to main page, broadcast link in a new tab except on broadcast page and login, other links can still be found on the thumb pages ())}function support2(){var cookies=document.cookie.split(";");for(i=0;i<cookies.length;i++)eraseCookie(cookies[i].split("=")[0],"");createCookie("agreeterms","1",30),createCookie("tnx","1",3),document.location.href="https://chaturbate.com/in/"+affkey}function cleanbar(){for(tags=document.getElementById("nav").getElementsByTagName('li'),n=1;n<tags.length;n++)"b"==tags[n].getElementsByTagName("a")[0].href.split("/")[3]&&"b"!=document.location.href.split("/")[3]?tags[n].getElementsByTagName("a")[0].target="_blank":-1==tags[n].getElementsByTagName("a")[0].href.indexOf('/login')&&(tags[n].style.display="none"),'tags'==tags[n].getElementsByTagName("a")[0].href.split("/")[3]&&readCookie("selected")&&(tags[n].style.display="block",tags[n].getElementsByTagName("a")[0].href=readCookie("selected"),tags[n].getElementsByTagName("a")[0].innerHTML="BACK")}function subselected(){document.location.href=document.getElementById("subsel").options[document.getElementById("subsel").selectedIndex].value}function controlsbutton(){var butstyle="margin-right: 10px;color: rgb(255, 255, 255); background: rgba(0, 0, 0, 0) linear-gradient(rgb(255, 151, 53) 0%, rgb(255, 158, 54) 50%, rgb(255, 112, 2) 60%) repeat scroll 0% 0%; font-family: UbuntuMedium, Helvetica, Arial, sans-serif; font-size: 12px; text-shadow: rgb(241, 129, 18) 1px 1px 0px; padding: 3px 10px 2px; float: right; border-radius: 4px; cursor: pointer; display: inline;",slistyle="text-align: left; width: 310px;margin-right: 10px;color: rgb(255, 255, 255); background: rgba(0, 0, 0, 0) linear-gradient(rgb(255, 151, 53) 0%, rgb(255, 158, 54) 50%, rgb(255, 112, 2) 60%) repeat scroll 0% 0%; font-family: UbuntuMedium, Helvetica, Arial, sans-serif; font-size: 12px; text-shadow: rgb(241, 129, 18) 1px 1px 0px; padding: 3px 10px 2px; float: right; border-radius: 4px; display: inline;";(newelem=document.createElement('li')).innerHTML="<div class='button_share'> <a href=#>VIDEO CONTROLS ON/OFF</a></div>",newelem.addEventListener('click',vcontrol),document.getElementsByClassName("socials")[0].appendChild(newelem),(newelem=document.createElement('div')).id="controls",newelem.style.display="none",newelem.style.position="absolute",newelem.style.backgroundColor="rgb(255, 255, 211)",newelem.style.border="2px solid rgb(244, 115, 33)",newelem.style.borderRadius="6px",newelem.style.width="350px",newelem.style.padding="12px",newelem.style.marginTop="50px",newelem.style.right="320px",newelem.style.zIndex="999",document.getElementsByClassName("socials")[0].appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",butstyle),newelem.innerHTML="MIRROR VIDEO",newelem.addEventListener("click",mirror),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",butstyle),newelem.innerHTML="INVERT VIDEO",newelem.addEventListener("click",invert),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",butstyle),newelem.innerHTML="DRAG",newelem.style.cursor="move",newelem.addEventListener("mousedown",dragMouseDown),document.getElementById("controls").appendChild(newelem),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",slistyle),newelem.innerHTML="BRIGHTNESS : <input type='range' id='myRange' min=0 max=200 value=100 style='width: 200px;height: 13px;cursor: pointer;float: right;'>",document.getElementById("controls").appendChild(newelem),document.getElementById("myRange").addEventListener("input",badjust),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",slistyle),newelem.innerHTML="CONTRAST : <input type='range' id='myRange1' min=0 max=200 value=100 style='width: 200px;height: 13px;cursor: pointer;float: right;'>",document.getElementById("controls").appendChild(newelem),document.getElementById("myRange1").addEventListener("input",cadjust),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",slistyle),newelem.innerHTML="SATURATION : <input type='range' id='myRange2' min=0 max=200 value=100 style='width: 200px;height: 13px;cursor: pointer;float: right;'>",document.getElementById("controls").appendChild(newelem),document.getElementById("myRange2").addEventListener("input",sadjust),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",slistyle),newelem.innerHTML="HUE : <input type='range' id='myRange3' min=180 max=540 value=360 style='width: 200px;height: 13px;cursor: pointer;float: right;'>",document.getElementById("controls").appendChild(newelem),document.getElementById("myRange3").addEventListener("input",hadjust),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),newelem=document.createElement('br'),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",butstyle),newelem.innerHTML="HIDE CONTROL PANEL",newelem.addEventListener("click",vcontrol),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('span')).setAttribute("style",butstyle),newelem.innerHTML="RESET ALL",newelem.addEventListener("click",vreset),document.getElementById("controls").appendChild(newelem),(newelem=document.createElement('input')).id="copytext",newelem.type="text",newelem.style.display="none",document.getElementsByClassName("socials")[0].appendChild(newelem),vreset()}function cleancookie(){readCookie("pclean")?eraseCookie("pclean"):createCookie("pclean",1,30),cleanup()} // hide or unhide marked elements in profile according to cookie function cleanup(){var claction=!readCookie("pclean");for(document.getElementById("clean").innerHTML=claction?"CLEAN PROFILE = ON ":"CLEAN PROFILE = OFF",tags=document.getElementsByName("clean"),i=0;i<tags.length;i++)tags[i].style.display=claction?"none":"block"}function fullscreenapi(){myfullscreen=!0,elem.requestFullscreen?elem.requestFullscreen():elem.mozRequestFullScreen?elem.mozRequestFullScreen():elem.webkitRequestFullScreen&&elem.webkitRequestFullscreen()} // full screen close function closeFullscreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()} //full screen enter/exit handler and prevent double full screen in html5 function exitHandler(){if(isfullscreen)//exit isfullscreen=!1,myfullscreen=!1,document.getElementById("fsclose").style.display="none",document.getElementById("player").style.width=orgplayerw+"px",createCookie("player_width",orgplayerw,1),elem.style.width="",sizeadj(),document.getElementsByClassName("vjs-fullscreen-control")[0]&&(document.getElementsByClassName("vjs-fullscreen-control")[0].style.visibility="visible");else{//enter if(!myfullscreen)return;isfullscreen=!0,document.getElementById("fsclose").style.display="block",orgplayerw=parseInt(document.getElementById("player").style.width),orgplayerh=parseInt(document.getElementById("player").style.height);var ratio=orgplayerw/orgplayerh,fsplheight=screen.height-92;document.getElementById("still_video_object_html5_api")&&(fsplheight-=32);var fsplwidth=Math.round(fsplheight*ratio);screen.width-fsplwidth<275&&(fsplwidth=screen.width-275),document.getElementById("player").style.width=fsplwidth+"px",createCookie("player_width",fsplwidth,1),elem.style.width="100%",sizeadj(),document.getElementsByClassName("vjs-fullscreen-control")[0]&&(document.getElementsByClassName("vjs-fullscreen-control")[0].style.visibility="hidden")}} //player resize function sizeadj(){win.resizable_player.update_sizes()} // brightness adjust function badjust(){br=document.getElementById("myRange").value,ofils=varea.style.filter.split(" "),varea.style.filter="brightness("+br+"%) "+ofils[1]+" "+ofils[2]+" "+ofils[3]+" "+ofils[4]} // contrast adjust function cadjust(){br=document.getElementById("myRange1").value,ofils=varea.style.filter.split(" "),varea.style.filter=ofils[0]+" contrast("+br+"%) "+ofils[2]+" "+ofils[3]+" "+ofils[4]} // saturation adjust function sadjust(){br=document.getElementById("myRange2").value,ofils=varea.style.filter.split(" "),varea.style.filter=ofils[0]+" "+ofils[1]+" "+ofils[2]+" saturate("+br+"%) "+ofils[4]} // hue adjust function hadjust(){(br=document.getElementById("myRange3").value)>359&&(br-=360),ofils=varea.style.filter.split(" "),varea.style.filter=ofils[0]+" "+ofils[1]+" "+ofils[2]+" "+ofils[3]+" hue-rotate("+br+"deg)"} // invert video function invert(){ofils=varea.style.filter.split(" "),br=" invert(100%) ","invert(100%)"==ofils[2]&&(br=" invert(0%) "),varea.style.filter=ofils[0]+" "+ofils[1]+br+ofils[3]+" "+ofils[4]} // mirror video function mirror(){"none"==varea.style.transform?varea.style.transform="matrix(-1, 0, 0, 1, 0, 0)":varea.style.transform="none"} // reset all video adjustments function vreset(){varea.style.filter="brightness(100%) contrast(100%) invert(0%) saturate(100%) hue-rotate(0deg)",varea.style.transform="none",document.getElementById("myRange").value=100,document.getElementById("myRange1").value=100,document.getElementById("myRange2").value=100,document.getElementById("myRange3").value=360} // video controls on/off function vcontrol(){"block"==document.getElementById("controls").style.display?document.getElementById("controls").style.display="none":document.getElementById("controls").style.display="block", // copy cdata to clipboard (only works after user interaction) function(cdata){document.getElementById("copytext").value=cdata,document.getElementById("copytext").style.display="block",document.getElementById("copytext").select(),document.execCommand("copy"),document.getElementById("copytext").style.display="none"} // cookie functions (HLS)} // writes a line in the profile at the top function wprof(row1,row2){var pnod=document.getElementById('tabs_content_container'),rnod=pnod.getElementsByTagName('h1')[0];(newelem=document.createElement('dl')).style.margin=0,newelem.style.padding=0,newelem.innerHTML="<dt>"+row1+"</dt><dd>"+row2+"</dd>",pnod.insertBefore(newelem,rnod.nextSibling)} // pull and drag functions // when clicked function dragMouseDown(e){(e=e||window.event).preventDefault(),pos3=e.clientX,pos4=e.clientY,document.onmouseup=closeDragElement,document.onmousemove=elementDrag} // when moved while clicked- part of dragMouseDown() function elementDrag(e){(e=e||window.event).preventDefault(),pos1=pos3-e.clientX,pos2=pos4-e.clientY,pos3=e.clientX,pos4=e.clientY,x=parseInt(document.getElementById("controls").style.right),y=parseInt(document.getElementById("controls").style.marginTop),pos3>=110&&pos3<=window.innerWidth-324&&(document.getElementById("controls").style.right=x+pos1+"px"),pos4>=20&&pos4<=window.innerHeight-20&&(document.getElementById("controls").style.marginTop=y-pos2+"px")} // stop moving when mouse button is released- part of dragMouseDown() function closeDragElement(){document.onmouseup=null,document.onmousemove=null}function createCookie(name,value,days,domain){var expires="";if(domain=domain?";domain=."+domain:"",days){var date=new Date;date.setTime(date.getTime()+24*days*60*60*1e3),expires="; expires="+date.toGMTString()}document.cookie=name+"="+value+expires+"; path=/"+domain}function readCookie(name){var nameEQ=name+"=",ca=document.cookie.split(';');for(i=0;i<ca.length;i++){for(var c=ca[i];' '==c.charAt(0);)c=c.substring(1,c.length);if(0===c.indexOf(nameEQ))return c.substring(nameEQ.length,c.length)}return null}function eraseCookie(name,domain){createCookie(name,"",-1,domain)}}();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.