jimgreeno

Chaturbate Enhanced

Sep 23rd, 2017
4,024
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Chaturbate Enhanced
  3. // @locale      en
  4. // @version     5.2.0
  5. // @author      jamesgreeno
  6. // @description No Ads, Change Colors,  Remove Profile Spam & Annoying Chat Tip GIFs, Deletes Exhibitionist Cams & More...
  7. // @icon        http://deplist.weebly.com/uploads/6/1/9/1/61911901/want.png
  8. // @include     https://chaturbate.com/b/jimgreenobigcock/*
  9. // @include     https://chaturbate.com/*
  10. // @include     https://chaturbate.com/followed-cams/*
  11. // @include     https://chaturbate.com/couple-cams/*
  12. // @include     https://*.chaturbate.com/*
  13. // @exclude     https://chaturbate.com/emoticons/*
  14. // @exclude     https://chaturbate.com/accounts/*
  15. // @exclude     https://chaturbate.com/apps/*
  16. // @exclude     https://chaturbate.com/photo_videos/*
  17. // @namespace   https://greasyfork.org/en/scripts/16228-chaturbate-enhanced
  18. // @require     https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js
  19. // @require     https://greasyfork.org/scripts/19017-jscolor/code/jscolor.js?version=121257
  20. // @license     GPLv3; http://www.gnu.org/copyleft/gpl.html
  21. // @grant       none
  22. // ==/UserScript==
  23.  
  24. this.$ = this.jQuery = jQuery.noConflict(true);
  25.  
  26. if (window.location.protocol != 'https:') {
  27.     window.location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
  28. }
  29. //===============================================Inserts holder for color selector and hide for now
  30. var jsColorBox = ('<div id="jsDiv"></div><input class="jscolor {onFineChange:"update(this)", width:101, padding:0, shadow:true,borderWidth:1, backgroundColor:"transparent", insetColor:"#000"}" value="80bfff" style="position:absolute; top:93px; left:555px;  z-index:1002;" >');
  31. $('#nav').append(jsColorBox);
  32. $('.jscolor').hide();
  33. function update(jscolor) {
  34.     // 'jscolor' instance can be used as a string
  35.     var jsClass = $('#lightColor');
  36.     jsClass.text('#' + jscolor);
  37. }
  38. //=============================================== Configure proper UTC values for setting cookies
  39. var later = new Date();
  40. var laterDate = later.setUTCFullYear('2099');
  41. var now = new Date();
  42. var time = now.getTime();
  43. time += 21600000;
  44. now.setTime(time);
  45. //=============================================== Set the cookies to make sure these values are always set
  46. document.cookie = 'noads=1; expires=' + now.toUTCString() + '; path=/';
  47. document.cookie = 'agreeterms=1; expires=' + later.toUTCString() + '; path=/';
  48. document.cookie = 'np3=1; expires=' + later.toUTCString() + '; path=/';
  49. //===============================================
  50. //DELETE EXHIBITIONIST CAMS-THEY ARE SCARY SOMETIMES IF NOT OBSCENE
  51. //OR SOME SCAMMER SPAMMING CHAT OFFERING SKYPE SHOWS FOR MONEY
  52. //===============================================
  53. function myTimer() {
  54.     var basura = $(".thumbnail_label_exhibitionist"); //Delete Exhibitionist Cams, always spam or very disgusting
  55.     if (basura) {
  56.         basura.parent().remove();
  57.     }
  58.     var cams = $(".details"); //Put thin border around cam preview thumbnails
  59.     if (cams) {
  60.         cams.parent().css({'color': "black", "border": "1px ridge black"});
  61.     }
  62.     var DOM = document.getElementsByClassName("list");
  63.     var noSissies = $( "a:contains('sissy')" );
  64.     if (noSissies) {
  65.         noSissies.parentsUntil(DOM, "li").remove();
  66.     }
  67. }
  68. //===============================================
  69. //========= Call removeElementByPath Function====
  70. //===============================================
  71. removeEBP();
  72. //===============================================
  73. function getCookie(cname) {
  74.     var name = cname + "=";
  75.     var ca = document.cookie.split(';');
  76.     for (var i = 0; i < ca.length; i++) {
  77.         var c = ca[i];
  78.         while (c.charAt(0) == ' ') c = c.substring(1);
  79.         if (c.indexOf(name) != -1) {
  80.             return c.substring(name.length, c.length);
  81.         }}
  82.     return "";
  83. }
  84.  
  85. var color1 = getCookie('cb-color1');
  86. var color2 = getCookie('cb-color2');
  87.  
  88. if ((color1 === "") || (color2 === "")) {
  89.     var color = ["80bfff", "000000"];
  90. } else {
  91.     var color = [color1, color2];
  92. }
  93. var color3 = getCookie('cb-color3');
  94. var color4 = getCookie('cb-color4');
  95.  
  96. var chkbx = getCookie('cb-chkbx');
  97. if (chkbx == 'locked') {
  98.     var varCheck = 'true';
  99.     var posi = 'fixed';
  100. }
  101. else {
  102.     var varCheck = 'false';
  103.     var posi = 'absolute';
  104. }
  105.  
  106. var chkbx2 = getCookie('cb-chkbx-2');
  107. if (chkbx2 == 'locked') {
  108.     var varCheck2 = 'true';
  109.     jQuery('document').ready(function($) {
  110.         var nav = $('.nav-bar');
  111.         $(window).scroll(function() {
  112.             if ($(this).scrollTop() > 85) {
  113.                 nav.addClass('fixnav');
  114.             }
  115.             else {
  116.                 nav.removeClass('fixnav');
  117.             }
  118.         });
  119.     });
  120. }
  121. else {
  122.     jQuery('document').ready(function($) {
  123.         var nav = $('.nav-bar');
  124.         $(window).scroll(function() {
  125.             if ($(this).scrollTop() < 0) {
  126.                 nav.addClass('fixnav');
  127.             }
  128.             else {
  129.                 nav.removeClass('fixnav');
  130.             }
  131.         });
  132.     });
  133. }
  134. //===================================================== Creates the SETTINGS Link On Top of Page
  135. function quickCheck() {
  136.     $(document).ready(function(){
  137.         var vnumber = '5.2.0';
  138.         var version = 'Chaturbate Enhanced - Version ' + vnumber;
  139.         var vernum = document.createElement('INS');
  140.         var txt = document.createTextNode(version);
  141.         vernum.setAttribute('id', 'verText');
  142.         vernum.setAttribute('style', 'position:absolute; top:36px; left:300px; color:#181818; font-family:arial; font-size:0.875em; font-weight:normal; text-decoration:none; z-index:1000;');
  143.         vernum.appendChild(txt);
  144.         document.body.appendChild(vernum);
  145.         var verCheck = document.createElement('INS');
  146.         var verTxt = document.createTextNode('');
  147.         verCheck.setAttribute('id', 'verText');
  148.         verCheck.setAttribute('style', 'display:none;');
  149.         verCheck.appendChild(verTxt);
  150.         document.body.appendChild(verCheck);
  151.         var edit = document.createElement('A');
  152.         var editTxt = document.createTextNode('Settings');
  153.         edit.setAttribute('id', 'editBut');
  154.         edit.setAttribute('style', 'position:absolute; top:18px; left:298px; font-family:arial; font-size:1.125em; font-weight:bold; text-decoration:none; z-index:1000;');
  155.         edit.setAttribute('href', '#');
  156.         edit.onclick = function() {
  157.             $('.jscolor').show();
  158.             var makeForm = document.createElement('FORM');
  159.             makeForm.setAttribute('id', 'colorForm');
  160.             makeForm.setAttribute('style', 'position:absolute; top:0; left:150px; width:278px; height:340px; background-color:#ffffff; border:1px solid #cbcbcb; border-radius:0px 1px 4px 0; z-index:1001;');
  161.             document.body.appendChild(makeForm);
  162.             //===================================================== Choose a light hexadecimal color label
  163.             var pick1 = document.createElement('INS');
  164.             var pickLight = document.createTextNode('Choose a light hexadecimal color');
  165.             pick1.setAttribute('style', 'position:absolute; top:10px; left:170px; text-decoration:none; z-index:1002;');
  166.             pick1.setAttribute('id', 'pick1Label');
  167.             pick1.appendChild(pickLight);
  168.             document.body.appendChild(pick1);
  169.             //===================================================== Choose a light hexadecimal color input box
  170.             var light = document.createElement('INPUT');
  171.             light.setAttribute('id', 'lightColor');
  172.             light.setAttribute('type', 'text');
  173.             light.setAttribute('value', color[0]);
  174.             light.setAttribute('style', 'position:absolute; top:20px; left:20px; text-decoration:none; z-index:1002;');
  175.             document.getElementById('colorForm').appendChild(light);
  176.             //===================================================== Choose a dark hexadecimal color
  177.             var pick2 = document.createElement('INS');
  178.             var pickDark = document.createTextNode('Choose a dark hexadecimal color');
  179.             pick2.setAttribute('style', 'position:absolute; top:60px; left:170px; text-decoration:none; z-index:1002;');
  180.             pick2.appendChild(pickDark);
  181.             document.body.appendChild(pick2);
  182.             //===================================================== Choose a dark hexadecimal input box
  183.             var dark = document.createElement('INPUT');
  184.             dark.setAttribute('id', 'darkColor');
  185.             dark.setAttribute('type', 'text');
  186.             dark.setAttribute('value', color[1]);
  187.             dark.setAttribute('style', 'position:absolute; top:70px; left:20px; text-decoration:none; z-index:1002;');
  188.             document.getElementById('colorForm').appendChild(dark);
  189.             //===================================================== Favorite Model Label for Input Box
  190.             var pick3 = document.createElement('INS');
  191.             var pickName = document.createTextNode('Choose a favorite model.');
  192.             pick3.setAttribute('style', 'position:absolute; top:110px; left:170px; text-decoration:none; z-index:1002;');
  193.             pick3.appendChild(pickName);
  194.             document.body.appendChild(pick3);
  195.             //===================================================== Favorite Model Input Box
  196.             var modelName = document.createElement('INPUT');
  197.             modelName.setAttribute('id', 'modelNameBox');
  198.             modelName.setAttribute('type', 'text');
  199.             modelName.setAttribute('value', color3);
  200.             modelName.setAttribute('style', 'position:absolute; top:120px; left:20px; text-decoration:none; z-index:1002;');
  201.             document.getElementById('colorForm').appendChild(modelName);
  202.             //===================================================== Font Name Label for Input Box
  203.             var pick4 = document.createElement('INS');
  204.             var pickFontName = document.createTextNode('Change Font Type');
  205.             pick4.setAttribute('style', 'position:absolute; top:155px; left:170px; text-decoration:none; z-index:1002;');
  206.             pick4.appendChild(pickFontName);
  207.             document.body.appendChild(pick4);
  208.             //===================================================== Font Name Combo Box
  209.             var pickFont = document.createElement('SELECT');
  210.             pickFont.setAttribute('style', 'position:absolute;top: 170px;left:20px;text-decoration:none;z-index:1002;');
  211.             pickFont.setAttribute('id', 'fontNameBox');
  212.             pickFont.setAttribute('type', 'option');
  213.             pickFont.setAttribute('elementtype', 'combobox');
  214.             pickFont.setAttribute('size', '1');
  215.             var pickOption = document.createElement('OPTION');
  216.             var pickOpt1 = document.createTextNode('Rockwell');//=====FIRST OPTION
  217.             pickOption.setAttribute('value', '1');
  218.             pickOption.appendChild(pickOpt1);
  219.             pickFont.appendChild(pickOption);
  220.  
  221.             var pickOption2 = document.createElement('OPTION');
  222.             var pickOpt2 = document.createTextNode('Tw Cen MT');//=====SECOND OPTION
  223.             pickOption2.setAttribute('value', '2');
  224.             pickOption2.appendChild(pickOpt2);
  225.             pickFont.appendChild(pickOption2);
  226.  
  227.             var pickOption3 = document.createElement('OPTION');
  228.             var pickOpt3 = document.createTextNode('Verdana');//=====THIRD OPTION
  229.             pickOption3.setAttribute('value', '3');
  230.             pickOption3.appendChild(pickOpt3);
  231.             pickFont.appendChild(pickOption3);
  232.  
  233.             document.getElementById('colorForm').appendChild(pickFont);
  234.             //===================================================== First checkbox label
  235.             var scroll = document.createElement('INS');
  236.             var scrollCheck = document.createTextNode('Lock room image in place.');
  237.             scroll.setAttribute('style', 'position:absolute; top:205px; left:170px; text-decoration:none; z-index:1002;');
  238.             scroll.appendChild(scrollCheck);
  239.             document.body.appendChild(scroll);
  240.             //===================================================== Checkbox
  241.             var chbox = document.createElement('INPUT');
  242.             if (varCheck == 'true') {
  243.                 chbox.setAttribute('id', 'checkBox');
  244.                 chbox.setAttribute('type', 'checkbox');
  245.                 chbox.setAttribute('checked', 'true');
  246.                 chbox.setAttribute('style', 'position:absolute; top:220px; left:20px; text-decoration:none; z-index:1002;');
  247.             }
  248.             else {
  249.                 chbox.setAttribute('id', 'checkBox');
  250.                 chbox.setAttribute('type', 'checkbox');
  251.                 chbox.setAttribute('style', 'position:absolute; top:220px; left:20px; text-decoration:none; z-index:1002;');
  252.             }
  253.             document.getElementById('colorForm').appendChild(chbox);
  254.             //===================================================== Second checkbox label & Checkbox
  255.             var scroll2 = document.createElement('INS');
  256.             var scrollCheck2 = document.createTextNode('Lock navigation bar in place.');
  257.             scroll2.setAttribute('style', 'position:absolute; top:245px; left:170px; text-decoration:none; z-index:1002;');
  258.             scroll2.appendChild(scrollCheck2);
  259.             document.body.appendChild(scroll2);
  260.             var chbox2 = document.createElement('INPUT');
  261.             if (varCheck2 == 'true') {
  262.                 chbox2.setAttribute('id', 'checkBox2');
  263.                 chbox2.setAttribute('type', 'checkbox');
  264.                 chbox2.setAttribute('checked', 'true');
  265.                 chbox2.setAttribute('style', 'position:absolute; top:260px; left:20px; text-decoration:none; z-index:1002;');
  266.             }
  267.             else {
  268.                 chbox2.setAttribute('id', 'checkBox2');
  269.                 chbox2.setAttribute('type', 'checkbox');
  270.                 chbox2.setAttribute('style', 'position:absolute; top:260px; left:20px; text-decoration:none; z-index:1002;');
  271.             }
  272.             document.getElementById('colorForm').appendChild(chbox2);
  273.             //===================================================== Insert Close and Save buttons on bottom
  274.             var save = document.createElement('A');
  275.             var close = document.createElement('A');
  276.             var saveTxt = document.createTextNode('Save');
  277.             var closeTxt = document.createTextNode('Close');
  278.             save.setAttribute('id', 'saveBut');
  279.             close.setAttribute('id', 'closeBut');
  280.             save.setAttribute('style', 'position:absolute; top:290px; left:364px; background-color:#ffffff; border:1px solid #181818; border-radius:4px; padding:2px 6px; z-index:1002;');
  281.             close.setAttribute('style', 'position:absolute; top:290px; left:314px; background-color:#ffffff; border:1px solid #181818; border-radius:4px; padding:2px 6px; z-index:1002;');
  282.             save.setAttribute('href', '#');
  283.             close.setAttribute('href', '#');
  284.             close.onclick = function() {
  285.                 $('.jscolor').hide();
  286.                 location.reload();
  287.             };
  288.             save.onclick = function() {
  289.                 $('.jscolor').hide();
  290.                 var color1 = document.getElementById('lightColor').value;
  291.                 var color2 = document.getElementById('darkColor').value;
  292.                 var color3 = document.getElementById('modelNameBox').value;
  293.                 var color4 = document.getElementById('fontNameBox').value;
  294.                 //===================================================== Check first checkbox from cookie
  295.                 var varCheck = document.getElementById('checkBox').checked;
  296.                 if (varCheck === true) {
  297.                     document.cookie = 'cb-chkbx=locked; expires=' + later.toUTCString() + '; path=/';
  298.                 }
  299.                 else {
  300.                     document.cookie = 'cb-chkbx=unlocked; expires=' + later.toUTCString() + '; path=/';
  301.                 }
  302.                 //===================================================== Check second checkbox from cookie
  303.                 var varCheck2 = document.getElementById('checkBox2').checked;
  304.                 if (varCheck2 === true) {
  305.                     document.cookie = 'cb-chkbx-2=locked; expires=' + later.toUTCString() + '; path=/';
  306.                 }
  307.                 else {
  308.                     document.cookie = 'cb-chkbx-2=unlocked; expires=' + later.toUTCString() + '; path=/';
  309.                 }
  310.                 //===================================================== Set color hex values in cookies
  311.                 document.cookie = 'cb-color1=' + color1 + '; expires=' + later.toUTCString() + '; path=/';
  312.                 document.cookie = 'cb-color2=' + color2 + '; expires=' + later.toUTCString() + '; path=/';
  313.                 document.cookie = 'cb-color3=' + color3 + '; expires=' + later.toUTCString() + '; path=/';
  314.                 if (color4 == 1) {
  315.                     document.cookie = 'cb-color4=' + "Rockwell" + '; expires=' + later.toUTCString() + '; path=/';
  316.                 } else if (color4 == 2) {
  317.                     document.cookie = 'cb-color4=' + "Tw Cen MT" + '; expires=' + later.toUTCString() + '; path=/';
  318.                 } else if (color4 == 3){
  319.                     document.cookie = 'cb-color4=' + "Verdana" + '; expires=' + later.toUTCString() + '; path=/';
  320.                 }
  321.  
  322.                 location.reload();
  323.             };
  324.             close.appendChild(closeTxt);
  325.             save.appendChild(saveTxt);
  326.             document.body.appendChild(close);
  327.             document.body.appendChild(save);
  328.         };
  329.         edit.appendChild(editTxt);
  330.         document.body.appendChild(edit);
  331.     });
  332. }
  333. //===================================================== Creates the SETTINGS Link only on these pages
  334. var versionTxt = document.URL;
  335. var locPathName = location.pathname;
  336. var chtBox = $('.chat-box');
  337. if ((locPathName === '/trans-cams/') || === '/followed-cams/')=== '/couple -cams/') ||=== '/female-cams/')(locPathName === '/') || (versionTxt === 'https://chaturbate.com/')) {
  338.     var myGarbageCollector = setInterval(myTimer, 1000);
  339.     quickCheck();
  340. } else if (chtBox) {
  341.     var myGarbageCollector2 = setInterval(chatGraphics, 50000);//Chatbox exists, add timer to clean chat spam
  342.     var tTip = $('#tooltip-subject');
  343.     if (tTip) { tTip.remove(); }  //Remove the Room Subject Tooltip that sometimes gets stuck open
  344.     var nextcam = $( ".nextcam" );
  345.     if (nextcam) { nextcam.remove(); } //Remove SCAN cams and NEXT CAM tabs
  346. }
  347. //===================================================== Function to find annoying chat graphics
  348. function chatGraphics () {
  349.     var strTitle = [":notips", ":comeontipgirls", ":tip", ":tokens", ":tipifyoulike", ":tipgirls", ":motivation" +
  350.     ":moretipsgreatshow", ":moreme", ":mmmh", ":tipgirls", ":notipnoshow", ":plssendtip01" +
  351.     ":moretipmoreshow2", ":tipsshow", ":plsfollow01", ":transfrot", ":moretips1", ":150" +
  352.     ":tipsee", ":tokensforreqests", ":showtip", ":suckingdeep"];
  353.     for (var j=0;j<strTitle.length;j++){
  354.         var imageString = $('img[title="' + strTitle[j] + '"]');
  355.         if (imageString) {
  356.             imageString.remove();
  357.         }
  358.     }
  359. }
  360. function addGlobalStyle(css) {
  361.     var head, style;
  362.     head = document.getElementsByTagName('head')[0];
  363.     if (!head) { return; }
  364.     style = document.createElement('style');
  365.     style.type = 'text/css';
  366.     style.innerHTML = css;
  367.     head.appendChild(style);
  368. }
  369.  
  370. addGlobalStyle('#header .ad {display:none!important;}' +
  371.     '.logo {background:url(\'https://greasyfork.org/system/screenshots/screenshots/000/003/216/thumb/logo-standard.png\') no-repeat!important;}' +
  372.     '#main .ad {display:none!important;}' +
  373.     '#botright {display:none!important;}' +
  374.     '#main .banner {display:none!important;}' +
  375.     '#close_entrance_terms {background-color:#' + color[0] + '!important;}' +
  376.     '#close_broadcast_terms {background-color:#' + color[0] + '!important;}' +
  377.     'a {color:#' + color[1] + '!important; outline-style:none!important; text-decoration:none!important;}' +
  378.     'a:hover {color:#777777!important;}' +
  379.     'body {background-color:#000000!important;}' +
  380.     '#header {background-image:http://deplist.weebly.com/uploads/6/1/9/1/61911901/7467455_orig.png!important; background-color:#' + color[0] + '!important;}' +
  381.     '#header .section {background-color:#' + color[0] + '!important;}' +
  382.     '#main .top-section p{margin:0 0 1px!important;}' +
  383.     '#main .top-section {border-bottom:1px solid #000000!important; border-bottom-width: thin!important; border-bottom-style: double!important; box-shadow: 0 5px 1px 6px #000000!important; padding:0px 19px 0 19px!important;}' +
  384.     '.sub-nav {display:inline-block;position:relative;top:0.5px;left:38%!important;min-width:275px;list-style:none;margin:0;padding:0;height:1%;overflow:hidden;font-family:\'Nyala\'!important;}' +
  385.     '#main .top-section .sub-nav {background-image:none!important;}' +
  386.     '#main .content {background-color:#' + color[0] + '!important; padding:5px 0px 14px 0!important;}' +
  387.     '#header .nav-bar {background-color:#' + color[1] + '!important; border-color:#cbcbcb!important;}' +
  388.     '#nav {font-family:Tw Cen MT!important; padding-bottom:5px!important;}' +
  389.     '#nav li a {color:#eeeeee!important;}' +
  390.     '#nav li a:hover {color:#' + color[0] + '!important;}' +
  391.     '#header .creat {font-family:\'Nyala\'!important; color:#cbcbcb!important; background-color:#FFFFFF!important; background-image:none!important; padding-left:2px!important; padding-bottom:5px!important; border-radius:0!important;}' +
  392.     '#main .top-section .sub-nav a {font-family:' + color4 + '!important; top:0px!important; left:38%!important; color:#003366!important; border-color:#000000!important; background-color:#ffffff!important; border-style: groove!important; border-width: 2px!important; text-shadow: .6px .3px 1px #000000!important; padding:2px 15px 1px!important;}' +
  393.     '#main .top-section .sub-nav a:hover {color:#e60000!important; top:0px!important; left:38%!important; background-color:#ffffff!important;cursor: auto;}' +
  394.     '#main .top-section .sub-nav .active a {color:#FF0000!important; top:0px!important; left:38%!important; background-color:#ffffff!important; }' +
  395.     '#main .top-section .actions li a {padding-left:10px!important; background-color:#' + color[0] + '!important; background-image:none!important; border-color:#888888!important;}' +
  396.     'strong {color:#131313!important;}' +
  397.     'h1, h2, h3 {color:#' + color[1] + '!important;}' +
  398.     '#main .content .endless_page_template {width:100%!important; margin:0 10px 0 32px!important;}' +
  399.     '.thumbnail_label_c {background-color:#181818!important;}' +
  400.     '.thumbnail_label_c_hd {background-color:#' + color[1] + '!important;}' +
  401.     '.thumbnail_label_transsexual {background-color:#ff0000!important;}' +
  402.     '.thumbnail_label_c_new {background-color:#545454!important;}' +
  403.     '#defchat .section .chat-holder .chat-box .users-list .text .color-p {color:#be6aff!important;}' +
  404.     '#defchat .section .chat-holder .chat-box .users-list .text .color-l {color:#804baa!important;}' +
  405.     '#defchat .section .chat-holder .chat-box .users-list .text .color-o {color:#dc5500!important;}' +
  406.     '#defchat .section .chat-holder .chat-box .users-list .text .color-m {color:#dc0000!important;}' +
  407.     '#defchat .section .chat-holder .chat-box .users-list .text .color-f {color:#00cf00!important;}' +
  408.     '#defchat .section .chat-holder .chat-box .users-list .text .color-tr {color:#000099!important;}' +
  409.     '#defchat .section .chat-holder .chat-box .users-list .text .color-t {color:#6699aa!important;}' +
  410.     '#defchat .section .chat-holder .chat-box .users-list .text .color-g {color:#666666!important;}' +
  411.     '#defchat .section .chat-holder .chat-box .chat-list .roommessagelabel {color:#' + color[1] + '!important;}' +
  412.     '.users-list, .settings-list, .chat-list {padding:0 11px 0 11px!important; width: auto!important;}' +
  413.     '#main .content .c-1 {width:100%!important; margin-right:0px!important; margin:6px!important;}' +
  414.     '.paging li a {background-color:#ffffff!important; border-color:#' + color[1] + '!important; background-image:none!important;}' +
  415.     '.paging li a:hover {background-color:#ffffff!important;}' +
  416.     '.paging .prev {border-radius:30px 0 0 30px!important;}' +
  417.     '.paging .next {border-radius:0 30px 30px 0!important;}' +
  418.     '.paging .endless_page_link {color:#181818!important;}' +
  419.     '.paging .active .endless_page_link {color:#' + color[1] + '!important; background-color:#ffffff!important;}' +
  420.     '#main .content .featured_blog_posts .blog_post .title_shell {background-image:none!important;}' +
  421.     '#main .content .featured_blog_posts .blog_post .title_shell .title {background-color:transparent!important;}' +
  422.     '.footer-holder {background-color:#eeeeee!important; background-image:none!important; border-top:2px solid #cbcbcb!important;}' +
  423.     '#jscontext .jscontextBtn {color:#' + color[1] + '!important;}' +
  424.     '#jscontext .jscontextBtn:hover {color:#eeeeee!important;}' +
  425.     '#defchat .section .chat-holder .chat-box .chat-form .row .button_send {background-color:#888888!important; background-image:none!important; border-radius:4px 4px 4px 4px!important;}' +
  426.     '#defchat .section .chat-holder .chat-box .chat-form .row .button_send a {color:#eeeeee!important; background-image:none!important; text-shadow:none!important;}' +
  427.     '#defchat .section .chat-holder .chat-box .chat-form .row .button_send a:hover {color:#ffffff!important;}' +
  428.     '#defchat .section .chat-holder .chat-box .chat-form {margin-right:12px!important;}' +
  429.     '#defchat .info-user .headline .socials .button_share {background-color:#eeeeee!important; background-image:none!important; border-radius:4px 4px 4px 4px!important;}' +
  430.     '#defchat .info-user .headline .socials .button_share a {background-image:none!important; text-shadow:none!important;}' +
  431.     '#defchat .info-user .headline .socials .button_follow {background-color:#eeeeee!important; background-image:none!important; border-radius:4px 4px 4px 4px!important;}' +
  432.     '#defchat .info-user .headline .socials .button_follow a {background-image:none!important; text-shadow:none!important;}' +
  433.     '#defchat .info-user .headline .socials .button_unfollow {background-color:#eeeeee!important; background-image:none!important; border-radius:4px 4px 4px 4px!important;}' +
  434.     '#defchat .info-user .headline .socials .button_unfollow a {background-image:none!important; text-shadow:none!important;}' +
  435.     '#defchat .section .video-box .tip_shell .green_button_tip {background-color:#777777!important; background-image:none!important; border-radius:4px 4px 4px 4px!important;}' +
  436.     '#defchat .section .video-box .tip_shell .green_button_tip .tip_button {color:#eeeeee!important; background-image:none!important; text-shadow:none!important;}' +
  437.     '#defchat .section .video-box .tip_shell .green_button_tip .tip_button:hover {color:#ffffff!important;}' +
  438.     '#defchat .offline_tipping .green_button_tip_offline {background-color:#777777!important; background-image:none!important; border-radius:4px 4px 4px 4px!important;}' +
  439.     '#defchat .offline_tipping .green_button_tip_offline .tip_button {color:#eeeeee!important; background-image:none!important; text-shadow:none!important;}' +
  440.     '#defchat .offline_tipping .green_button_tip_offline .tip_button:hover {color:#ffffff!important;}' +
  441.     '#defchat .section .video-box .tip_shell .goal_display .goal_display_table .dark_blue {background-color:#' + color[0] + '!important;}' +
  442.     '.follow_tooltip, .share_tooltip, #rate_tooltip, #rated_tooltip, #rate_dim_tooltip, #broadcaster_rating_tooltip {background-color:#eeeeee!important; border-color:#777777!important;}' +
  443.     '.follow_tooltip img, .share_tooltip img, #rate_tooltip img, #rated_tooltip img, #rate_dim_tooltip img, #broadcaster_rating_tooltip img {display:none!important;}' +
  444.     '#tabs_content_container dl dt {color:#' + color[1] + '!important;}' +
  445.     '#tabs_content_container .pics-description .photo_list .user_upload .thumbnail_label_tokens {background-color:#181818!important;}' +
  446.     '#body_border .user_uploads .user_upload .thumbnail_label_tokens {background-color:#181818!important;}' +
  447.     '#filter_search_form .button {background-color:#' + color[1] + '!important; background-image:none!important; padding-left:28px!important;}' +
  448.     '#filter_search_form .button:hover {text-decoration:none!important;}' +
  449.     '#defchat {width:auto!important;}' +
  450.     '.section {width:100%!important;}' +
  451.     '.block {margin-right:12px!important; border:1px ridge #000000!important; padding: 4px!important;}' +
  452.     '#login-box {border-color:#777777!important; z-index:2001!important;}' +
  453.     '#login-box .pagename {position:relative!important; top:-4px!important; left:-2px!important; font-family:\'trebuchet ms\'!important; color:#' + color[1] + '!important;}' +
  454.     '#login-box .button {padding-left:14px!important; color:#454545!important; background-color:#cbcbcb!important; background-image:none!important;}' +
  455.     '#login-box .button:hover {color:#eeeeee!important; background-color:#888888!important; text-decoration:none!important;}' +
  456.     '#user_information .top {background-color:#' + color[1] + '!important; border-radius:2px 2px 0 0!important; padding:5px 3px 4px 5px!important;}' +
  457.     '#user_information .top .username{display:inline-block;font:14px; font-family:\'Nyala\'!important;overflow:hidden;margin:0 12px 0 5px;max-width:125px;text-overflow:ellipsis;white-space:nowrap;position:relative;top:3px;}' +
  458.     '#user_information {position:absolute!important; top:-9px!important; right:0!important;}' +
  459.     '#user_information .top a {color:#eeeeee!important;}' +
  460.     '#user_information .top a:hover {color:#cbcbcb!important;}' +
  461.     '#user_information .tokencountlink {font-size:11px!important;}' +
  462.     '#user_information .bottom {border-color:#' + color[1] + '!important;}' +
  463.     '#apps_and_bots_table tr legend {color:#' + color[1] + '!important;}' +
  464.     '#leaderboard .number {color:#181818!important;}' +
  465.     '#leaderboard .position_1 {color:#' + color[1] + '!important;}' +
  466.     '#tag_table {border-color:#' + color[1] + '!important;}' +
  467.     '#tag_table .headers {background-color:#' + color[1] + '!important;}' +
  468.     '#tag_table .tag_row:nth-child(2n+1) {background-color:#' + color[0] + '!important;}' +
  469.     '#broadcaster_settings legend {color:#' + color[1] + '!important;}' +
  470.     '.button {color:#' + color[1] + '!important; text-decoration:none!important; background-color:#eeeeee!important; background-image:none!important; border-radius:4px 4px 4px 4px!important; padding:0 15px 2px 15px!important;}' +
  471.     '.button:hover {color:#131313!important;}' +
  472.     '#filter_search_form p .button {color:#cbcbcb!important; padding:2px 6px!important;}' +
  473.     '#filter_search_form p .button:hover {color:#e6e6e6!important;}' +
  474.     '#suggest_app img {display:none!important;}' +
  475.     'a.user_upload_preview {color:#181818!important;}' +
  476.     'a.user_upload_preview:hover {color:#777777!important;}' +
  477.     '.overlay_popup .formborder {border:2px solid #' + color[1] + '!important; border-radius:4px!important;}' +
  478.     '.overlay_popup .divider {display:none!important;}' +
  479.     '.overlay_popup .title {color:#' + color[1] + '!important;}' +
  480.     '.app_launch a {background-color:#cbcbcb!important;}' +
  481.     '.proposal_votes {background-color:#cbcbcb!important;}' +
  482.     '.related {color:#' + color[1] + '!important;}' +
  483.     '.document, .related {background-color:#' + color[0] + '!important;}' +
  484.     '.sphinxsidebar ul, .sphinxsidebar h4, .sphinxsidebar p, .footer {color:#777777!important;}' +
  485.     '.datatable, .datatable th {background-color:#' + color[1] + '!important;}' +
  486.     '.code {color:#' + color[1] + '!important;}' +
  487.     '.fixnav {position:fixed!important; left:0!important; top:0!important; width:100%!important; height:auto!important; z-index:999!important;}' +
  488.     '#login-overlay {z-index:2000!important;}' +
  489.     '#overlay {z-index:1001!important;}' +
  490.     '#entrance_terms, #broadcast_terms {z-index:1002!important;}' +
  491.     '.tip_popup img {display:none!important;}' +
  492.     '.tabs {background-color:#e6e6e6!important;}' +
  493.     '#app_title {color:#' + color[1] + '!important;}' +
  494.     'legend {color:#' + color[1] + '!important;}' +
  495.     '.share {background-color:#e6e6e6!important;}' +
  496.     '.blue, .ourtitle, .choiceclear {color:#' + color[1] + '!important;}');
  497. //===============================================
  498. //===============================================
  499. var getName = location.pathname;
  500. var latest = getName.slice(1,-1);
  501.  
  502. if (latest == 'tags') {
  503.     latest = '';
  504. }
  505.  
  506. var prof = latest.search('p/');
  507. if (prof === 0) {
  508.     latest = latest.replace('p/', '');
  509. }
  510.  
  511. var broad = latest.search('b/');
  512. if (broad === 0) {
  513.     latest = latest.replace('b/', '');
  514. }
  515.  
  516. var app = latest.search('app');
  517. if (app === 0) {
  518.     document.getElementById('verText').innerHTML = '';
  519.     document.getElementById('editBut').innerHTML = '';
  520. }
  521.  
  522. var apps = latest.search('apps');
  523. if (apps === 0) {
  524.     latest = latest.replace('apps', '');
  525.     document.getElementById('verText').innerHTML = '';
  526.     document.getElementById('editBut').innerHTML = '';
  527. }
  528.  
  529. var affiliates = latest.search('affiliates/api/onlinerooms');
  530. if (affiliates === 0) {
  531.     latest = latest.replace('affiliates/api/onlinerooms', '');
  532.     document.getElementById('verText').innerHTML = '';
  533.     document.getElementById('editBut').innerHTML = '';
  534. }
  535.  
  536. var feeds = latest.search('feed/latest');
  537. if (feeds === 0) {
  538.     latest = latest.replace('feed/latest', '');
  539.     document.getElementById('verText').innerHTML = '';
  540.     document.getElementById('editBut').innerHTML = '';
  541. }
  542.  
  543. var photovid = latest.search('photo_videos/');
  544. var tipping = latest.search('tipping/');
  545. var emoticons = latest.search('emoticons');
  546. if ((photovid === 0) || (tipping === 0) || (emoticons === 0)) {
  547.     document.getElementById('verText').innerHTML = '';
  548.     document.getElementById('editBut').innerHTML = '';
  549. }
  550.  
  551. var pic = document.createElement('IMG');
  552. pic.setAttribute('id', 'newImage');
  553. pic.setAttribute('src', 'https://roomimg.stream.highwebmedia.com/ri/' + latest + '.jpg');
  554. pic.setAttribute('style', 'position:' + posi + '; top:0; right:268px; border:1px solid #' + color[1] + '; width:95px; height:78px; z-index:1000;');
  555. pic.onload = function() {
  556.     if ((latest != '/propose_app') && (latest != '/proposals') && (latest != '/upload_app') && (latest != '/search') && (latest != 'emoticons')) {
  557.         document.body.appendChild(pic);
  558.     }
  559. };
  560. pic.onerror = function() {
  561.     pic.setAttribute('style', 'display:none;');
  562. };
  563.  
  564. var link = document.getElementsByTagName('a');
  565. for (i = 0; i < link.length; i++) {
  566.     if (link[i].href.indexOf('?url=') != -1) {
  567.         linkhref = unescape(link[i].href);
  568.         newlinkhref = linkhref.substring(linkhref.indexOf("?url=") + 5, linkhref.indexOf("&domain"));
  569.         link[i].href = newlinkhref;
  570.     }
  571. }
  572.  
  573. var broadcasting = '/b/' + latest + '/';
  574.  
  575. var onCheck = document.createElement('INS');
  576. var onTxt = document.createTextNode('');
  577. onCheck.setAttribute('id', 'checkOn');
  578. onCheck.setAttribute('style', 'display:none;');
  579. onCheck.appendChild(onTxt);
  580. document.body.appendChild(onCheck);
  581.  
  582. $('#checkOn').load('https://chaturbate.com/' + latest + '#defchat p strong');
  583.  
  584. setTimeout(function() {
  585.     var getOn = document.getElementById('checkOn').textContent;
  586.     var stripTags = getOn.search(Room is currently online');
  587.    if (stripTags !== 0) {
  588.        return;
  589.    }
  590.    else {
  591.        setInterval(function() {
  592.            $('#checkOn').load('https://chaturbate.com/' + latest + '#defchat p strong');
  593.             setTimeout(function() {
  594.                 var reCheck = document.getElementById('checkOn').textContent;
  595.                 var reStrip = reCheck.search('Room is currently online');
  596.                 if (reStrip === 0) {
  597.                     return;
  598.                 }
  599.                 else if (getName == broadcasting) {
  600.                     return;
  601.                 }
  602.                 else {
  603.                     location.reload();
  604.                 }
  605.             }, 5000);
  606.         }, 5000);
  607.     }
  608. }, 5000);
  609.  
  610. // =============================================================================
  611. // === Remove Thumbnail Preview Lock Icon to make Preview more Visible =========
  612. // =============================================================================
  613. pictures = document.getElementsByClassName('preview');
  614. if (pictures) {
  615.     for (i = 0; i < pictures.length; i++) {
  616.         if (pictures[i].getAttribute("alt") == "unLocked") {
  617.             pictures[i].parentNode.removeChild(pictures[i]);
  618.         }
  619.     }
  620. }
  621. // =============================================================================
  622. // === Create Favorite Model Cam ===============================================
  623. // =============================================================================
  624. if (color3 !== '') {
  625.     if (latest == 'transsexual-cams') {
  626.         var chgAct = document.getElementsByClassName('sub-nav')[0].innerHTML;
  627.         var exCheck = chgAct.search('<li class="active">');
  628.         if (exCheck) {
  629.             chgAct = chgAct.replace('<li class="active">', '<li>');
  630.         }
  631.         var newEx = chgAct + '<li class="active"><a href="/' + color3 + '/">' + color3 + '</a></li>';
  632.         document.getElementsByClassName('sub-nav')[0].innerHTML = newEx;
  633.     } else if (getName == broadcasting) {
  634.         console.log('Broadcasting Interface Detected');
  635.     } else {
  636.         var getSub = document.getElementsByClassName('sub-nav')[0].innerHTML;
  637.         var addEx = getSub + '<li><a href="/' + color3 + '/">' + color3 + '</a></li>';
  638.         document.getElementsByClassName('sub-nav')[0].innerHTML = addEx;
  639.     }
  640. }
  641. var getSubAgain = document.getElementsByClassName('sub-nav')[0].innerHTML;
  642. var addExAgain = getSubAgain + '<li><a href="' + document.URL + '">' + 'REFRESH' + '</a></li>';
  643. document.getElementsByClassName('sub-nav')[0].innerHTML = addExAgain;
  644. // =============================================================================
  645. if (color4 === ''){
  646.     color4 = "Tw Cen MT"
  647. }
  648. // =============================================================================
  649. // === Remove Sections =========================================================
  650. // =============================================================================
  651. function removeEBP() {
  652.     MV_removeElementsByPath("//img[contains(@src, 'postimg.org')]");
  653.     MV_removeElementsByPath("//img[contains(@src, 'www.dmca.com/App_Themes/')]");
  654.     MV_removeElementsByPath("//img[contains(@src, 'http://s06.flagcounter.com')]");
  655.     MV_removeElementsByPath("//img[contains(@src, 'http://s09.flagcounter.com')]");
  656.     MV_removeElementsByPath("//img[contains(@src, 'http://25.media.tumblr.com')]");
  657.     MV_removeElementsByPath("//img[contains(@src, '4.bp.blogspot.com')]");
  658.     MV_removeElementsByPath("//img[contains(@src, 'https://3.bp.blogspot.com')]");
  659.     MV_removeElementsByPath("//img[contains(@src, 'https://2.bp.blogspot.com')]");
  660.     MV_removeElementsByPath("//img[contains(@src, 'https://1.bp.blogspot.com')]");
  661.     MV_removeElementsByPath("//img[contains(@src, 'ig-badge-48.png')]");
  662.     MV_removeElementsByPath("//img[contains(@src, 'dmca_protected')]");
  663.     MV_removeElementsByPath("//img[contains(@src, 'imgur')]");
  664.     MV_removeElementsByPath("//img[contains(@src, 'www.camfolk.info/')]");
  665.     MV_removeElementsByPath("//img[contains(@src, 'http://www.asocea.com')]");
  666.     MV_removeElementsByPath("//img[contains(@src, 'tinypic.com')]");
  667.     MV_removeElementsByPath("//img[contains(@src, 'photobucket.com')]");
  668.     MV_removeElementsByPath("//img[contains(@src, 'imageshack.com')]");
  669.     MV_removeElementsByPath("//img[contains(@src, 'ecx.images-amazon.com')]");
  670.     MV_removeElementsByPath("//img[contains(@src, 'dresden-stollen.com')]");
  671.     MV_removeElementsByPath("//img[contains(@src, 'hatchnorfolk.com')]");
  672.     MV_removeElementsByPath("//img[contains(@src, 'icons.iconarchive.com')]");
  673.     MV_removeElementsByPath("//img[contains(@src, 'googleusercontent.com')]");
  674.     MV_removeElementsByPath("//img[contains(@src, 'server.myspace-shack.com')]");
  675.     MV_removeElementsByPath("//img[contains(@src, 'images.dmca.com/Badges/')]");
  676.     MV_removeElementsByPath("//img[contains(@src, 'DMCA_logo-grn-btn100w.png')]");
  677.     MV_removeElementsByPath("//img[contains(@src, 'DMCA_logo-std-btn140w.png')]");
  678.     MV_removeElementsByPath("//img[contains(@src, 'dmca_normal.png')]");
  679.     MV_removeElementsByPath("//img[contains(@src, 'DMCA_logo-200w_a_zpsf5mn8hoq.png')]");
  680.     MV_removeElementsByPath("//img[contains(@src, '_dmca_premi_badge_2.png')]");
  681.     MV_removeElementsByPath("//img[contains(@src, 'amazon_jk.png')]");
  682.     MV_removeElementsByPath("//img[contains(@src, 'https://45.media.tumblr.com')]");
  683.     MV_removeElementsByPath("//img[contains(@src, 'picasion.com')]");
  684.     MV_removeElementsByPath("//img[contains(@src, 'glitterfy.com')]");
  685.     MV_removeElementsByPath("//img[contains(@style, 'width:400px; height:400px')]");
  686.     MV_removeElementsByPath("//img[contains(@style, 'width:100px; height:100px')]");
  687.     MV_removeElementsByPath("//img[contains(@style, 'width:64px; height:64px')]");
  688.     MV_removeElementsByPath("//img[contains(@style, 'width:62px; height:62px')]");
  689.     MV_removeElementsByPath("//img[contains(@style, 'width:60px; height:60px')]");
  690.     MV_removeElementsByPath("//img[contains(@style, 'width:55px; height:55px')]");
  691.     MV_removeElementsByPath("//img[contains(@style, 'width:50px; height:50px')]");
  692.     MV_removeElementsByPath("//img[contains(@style, 'width:50px; height:57px')]");
  693.     MV_removeElementsByPath("//img[contains(@style, 'width:48px; height:48px')]");
  694.     MV_removeElementsByPath("//img[contains(@style, 'width:43px; height:43px')]");
  695.     MV_removeElementsByPath("//a[contains(@href, 'width:50px; height:50px')]");
  696.     MV_removeElementsByPath("//a[contains(@href, 'http://i.imgur.com')]");
  697.     MV_removeElementsByPath("//a[contains(@href, 'http://imgur.com')]");
  698.     MV_removeElementsByPath("//a[contains(@href, 'amateurmatch')]");
  699.     MV_removeElementsByPath("//a[contains(@href, 'amazon')]");
  700.     MV_removeElementsByPath("//a[contains(@href, '/tags/')]");
  701.     MV_removeElementsByPath("//a[contains(@href, 'https://twitter.com/')]");
  702.     MV_removeElementsByPath("//a[contains(@href, 'instagram.com/')]");
  703.     MV_removeElementsByPath("//a[@href='/contest/details/']");
  704.     MV_removeElementsByPath("//div[@class='nav-bar']//li/a[@href='/tipping/free_tokens/']");
  705.     MV_removeElementsByPath("//div[@class='c-1 endless_page_template']//div[@class='thumbnail_label thumbnail_label_c']");
  706.     MV_removeElementsByPath("//div[@class='nav-bar']//li/a[@href='http://blog.chaturbate.com/']");
  707.     MV_removeElementsByPath("//div[@class='top-section']//li/a[@href='/']");
  708.     MV_removeElementsByPath("//div[@class='featured_text']");
  709.     MV_removeElementsByPath("//div[@class='footer-holder']");
  710.     MV_removeElementsByPath("//div[@class='featured_blog_posts']");
  711.     MV_removeElementsByPath("//div[contains(@class, 'thumbnail_label thumbnail_label_c')]");
  712.     MV_removeElementsByPath("//div[contains(@class, 'thumbnail_label thumbnail_label_tokens')]");
  713.     var headerAD = $('.ad');
  714.     if (headerAD) { headerAD.remove(); } //Remove AD sections hidden inside the page Header
  715. // =============================================================================
  716.     var scriptTest = $('script[src="https://cdn.exoticads.com/xads.js"]');
  717.     if (scriptTest) { scriptTest.remove(); } //Remove the garbage AD script
  718. // =============================================================================
  719.     var scriptTest2 = $('script[src="https://ssl.google-analytics.com/ga.js"]');
  720.     if (scriptTest2) { scriptTest2.remove(); } //Remove the google analytics tracking script
  721. // =============================================================================
  722.     var removeGAQ = $('script[id="gaq"]');
  723.     if (removeGAQ) { removeGAQ.remove(); } //Remove the google tracking script
  724. }
  725. // =============================================================================
  726. // === Functions================================================================
  727. // =============================================================================
  728. // Include start [domUtil.js]
  729. function MV_removeElementsByPath(pPath) {
  730.     var pathResult = document.evaluate(pPath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  731.     if(pathResult.snapshotLength > 0) {
  732.         for(var i=0; i < pathResult.snapshotLength; i++) {
  733.             var pathNode = pathResult.snapshotItem(i);
  734.             pathNode.parentNode.removeChild(pathNode);
  735.         }
  736.     }
  737. }
  738. // =============================================================================
  739. // === Get Elements By Path ====================================================
  740. // =============================================================================
  741. function MV_getElementByPath(pPath, pRoot) {
  742.     var pathResult = document.evaluate(pPath, pRoot === null ? document : pRoot, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  743.     return pathResult.snapshotLength <= 0 ? null : pathResult.snapshotItem(0);
  744. }
  745. // =============================================================================
  746. // === Create Button ===========================================================
  747. // =============================================================================
  748. function MV_createButton(pAttributes, pClickListener) {
  749.     pAttributes.type = "button";
  750.     var resultElement = MV_createElement("input", pAttributes);
  751.     if(pClickListener !== null) {
  752.         resultElement.addEventListener("click", pClickListener, true);
  753.     }
  754.     return resultElement;
  755. }
  756. // =============================================================================
  757. // === Create Element ==========================================================
  758. // =============================================================================
  759. function MV_createElement(pElementName, pAttributes, pInnerHtml) {
  760.     var resultElement = document.createElement(pElementName);
  761.     for(var attributeName in pAttributes) {
  762.         resultElement.setAttribute(attributeName, pAttributes[attributeName]);
  763.     }
  764.     if(pInnerHtml !== null) {
  765.         resultElement.innerHTML = pInnerHtml;
  766.     }
  767.     return resultElement;
  768. }
  769.  
  770. var passCheck = document.createElement('INS');
  771. var passTxt = document.createTextNode('');
  772. passCheck.setAttribute('id', 'checkPass');
  773. passCheck.setAttribute('style', 'display:none;');
  774. passCheck.appendChild(passTxt);
  775. document.body.appendChild(passCheck);
  776.  
  777. $('#checkPass').load('https://chaturbate.com/' + latest + '#main .content .c-1 .SHOWh1');
  778.  
  779. setTimeout(function() {
  780.     var getPass = document.getElementById('checkPass').textContent;
  781.     var stripPtags = getPass.search('This room requires a password.');
  782.     if (stripPtags !== 0) {( 'password:1234.')('passCheck.setpassword:1234.'('checkPass');
  783.         return;
  784.     }
  785.     else {
  786.         setInterval(function() {
  787.             var newLatest = latest.replace('roomlogin/', '');
  788.             $('#checkPass').load('https://chaturbate.com/' + newLatest + '#main .content .c-1 .SHOW h1');
  789.             setTimeout(function() {
  790.                 var rePcheck = document.getElementById('checkPass').textContent;
  791.                 var rePstrip = rePcheck.search('This room requires a password.');
  792.                 if (rePstrip === 0) {( 'password:1234.')('passCheck.setpassword:1234.'('checkPass');                    return;
  793.                 }
  794.                 else {
  795.                     window.location = 'https://chaturbate.com/' + newLatest;
  796.                 }
  797.             }, 5000);
  798.         }, 5000);
  799.     }
  800. }, 5000);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×