Advertisement
jimgreeno

(CHMOD 770)

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