57.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

02-13-2017, 12:44 PM (This post was last modified: 02-13-2017 12:45 PM by hardworker1970.)
Post: #21
RE: [REQ] - TubeScout (by Seth Bias)
They removed the text file with the info, can someone please share the contents of that text file?
02-14-2017, 03:14 PM (This post was last modified: 02-14-2017 03:29 PM by BeingHuman.)
Post: #22
RE: [REQ] - TubeScout (by Seth Bias)
(02-13-2017 12:44 PM)hardworker1970 Wrote:  They removed the text file with the info, can someone please share the contents of that text file?

Cool Hope this helps

Code:
http://webcache.googleusercontent.com/search?q=cache:DbwfzX7OKP4J:sethbias.net/wp-content/uploads/2017/01/TubeScout.txt+&cd=2&hl=en&ct=clnk&gl=in&client=firefox-b

Code:
http://webcache.googleusercontent.com/search?q=cache:9-SsWE_uit0J:sethbias.net/wp-content/uploads/2017/01/+&cd=1&hl=en&ct=clnk&gl=in&client=firefox-b

This is Google's cache of http://sethbias.net/wp-content/uploads/2...Scout.txt. It is a snapshot of the page as it appeared on 5 Feb 2017 10:43:26 GMT.
The current page could have changed in the meantime
Tamper Money - Chrome
Code:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en

Tamper Money - Firefox

Code:
https://addons.mozilla.org/en-us/firefox/addon/tampermonkey/

(02-03-2017 03:09 AM)menace-to-gurus Wrote:  Install Tamper Monkey app, then copy and paste the Tube Scout code into tamper monkey ( create new script ) and your good to go..


Get the Tube Scout Code here
Magic Button :
Code:
http://sethbias.net/wp-content/uploads/2017/01/

Tub3Sc0ut Scr1Pt

Magic Button :
Code:
// ==UserScript==
// @name         TubeScout
// @namespace    http://sethbias.net
// @version      1.00
// @description  Scout The Top YT Hidden Stats
// @author       sethbias.net
// @match        https://www.youtube.com/watch?v=*
// @match        https://www.youtube.com/results?*
// @match        https://www.youtube.com/
// @grant        Copyright 2017 All Rights Reserved.
// @require      https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js
// ==/UserScript==
(function() {
    'use strict';
    var words=["\x61\x62\x6F\x75\x74","\x61\x62\x6F\x76\x65","\x61","\x61\x63\x63\x6F\x72\x64\x69\x6E\x67","\x61\x63\x72\x6F\x73\x73","\x61\x63\x74\x75\x61\x6C\x6C\x79","\x61\x66\x74\x65\x72","\x61\x66\x74\x65\x72\x77\x61\x72\x64\x73","\x61\x67\x61\x69\x6E","\x61\x67\x61\x69\x6E\x73\x74","\x61\x6C\x6D\x6F\x73\x74","\x61\x6C\x6F\x6E\x65","\x61\x6C\x6F\x6E\x67","\x61\x6C\x72\x65\x61\x64\x79","\x61\x6C\x73\x6F","\x61\x6C\x74","\x61\x6C\x74\x68\x6F\x75\x67\x68","\x61\x6C\x77\x61\x79\x73","\x61\x6D","\x61\x6D\x6F\x6E\x67","\x61\x6D\x6F\x6E\x67\x73\x74","\x61\x6E","\x61\x6E\x64","\x61\x6E\x6F\x74\x68\x65\x72","\x61\x6E\x79","\x61\x6E\x79\x68\x6F\x77","\x61\x6E\x79\x6F\x6E\x65","\x61\x6E\x79\x74\x68\x69\x6E\x67","\x61\x6E\x79\x77\x68\x65\x72\x65","\x61\x72\x65","\x61\x72\x65\x6E","\x61\x72\x65\x6E\x27\x74","\x61\x72\x6F\x75\x6E\x64","\x62\x65","\x62\x65\x63\x61\x6D\x65","\x62\x65\x63\x61\x75\x73\x65","\x62\x65\x63\x6F\x6D\x65","\x62\x65\x63\x6F\x6D\x65\x73","\x62\x65\x63\x6F\x6D\x69\x6E\x67","\x62\x65\x65\x6E","\x62\x65\x66\x6F\x72\x65","\x62\x65\x66\x6F\x72\x65\x68\x61\x6E\x64","\x62\x65\x68\x69\x6E\x64","\x62\x65\x69\x6E\x67","\x62\x65\x6C\x6F\x77","\x62\x65\x73\x69\x64\x65","\x62\x65\x73\x69\x64\x65\x73","\x62\x65\x74\x77\x65\x65\x6E","\x62\x65\x79\x6F\x6E\x64","\x62\x6F\x74\x68","\x62\x75\x74","\x62\x75\x79","\x63\x61\x6E","\x63\x61\x6E\x27\x74","\x63\x61\x6E\x6E\x6F\x74","\x63\x6F\x6D","\x63\x6F\x75\x6C\x64","\x63\x6F\x75\x6C\x64\x6E","\x63\x6F\x75\x6C\x64\x6E\x27\x74","\x64\x69\x64","\x64\x69\x64\x6E","\x64\x69\x64\x6E\x27\x74","\x64\x6F","\x64\x6F\x65\x73","\x64\x6F\x65\x73\x6E","\x64\x6F\x65\x73\x6E\x27\x74","\x64\x6F\x6E\x27\x74","\x64\x75\x72\x69\x6E\x67","\x65\x61\x63\x68","\x65\x69\x74\x68\x65\x72","\x65\x6C\x73\x65","\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x65\x6E\x6F\x75\x67\x68","\x65\x74\x63","\x65\x76\x65\x6E","\x65\x76\x65\x72","\x65\x76\x65\x72\x79","\x65\x76\x65\x72\x79\x6F\x6E\x65","\x65\x76\x65\x72\x79\x74\x68\x69\x6E\x67","\x65\x76\x65\x72\x79\x77\x68\x65\x72\x65","\x65\x78\x63\x65\x70\x74","\x66\x65\x77","\x66\x6F\x72","\x66\x72\x6F\x6D","\x67\x65\x74","\x68\x61\x64","\x68\x61\x73","\x68\x61\x73\x6E","\x68\x61\x73\x6E\x27\x74","\x68\x61\x76\x65","\x68\x61\x76\x65\x6E","\x68\x61\x76\x65\x6E\x27\x74","\x68\x65\x27\x64","\x68\x65\x27\x6C\x6C","\x68\x65\x27\x73","\x68\x65\x6E\x63\x65","\x68\x65\x72\x65","\x68\x65\x72\x65\x27\x73","\x68\x65\x72\x65\x61\x66\x74\x65\x72","\x68\x65\x72\x65\x62\x79","\x68\x65\x72\x65\x69\x6E","\x68\x65\x72\x65\x75\x70\x6F\x6E","\x68\x6F\x77","\x68\x6F\x77\x65\x76\x65\x72","\x69\x27\x64","\x69\x27\x6C\x6C","\x69\x27\x6D","\x69\x27\x76\x65","\x69\x2E\x65\x2E","\x69\x65","\x69\x66","\x69\x6E","\x69\x6E\x64\x65\x65\x64","\x69\x6E\x73\x74\x65\x61\x64","\x69\x6E\x74\x6F","\x69\x73","\x69\x73\x6E","\x69\x73\x6E\x27\x74","\x69\x74","\x69\x74\x27\x73","\x69\x74\x73","\x69\x74\x73\x65\x6C\x66","\x6C\x61\x74\x65\x72","\x6C\x61\x74\x74\x65\x72","\x6C\x65\x61\x73\x74","\x6C\x65\x73\x73","\x6C\x65\x74","\x6C\x65\x74\x27\x73","\x6C\x69\x6B\x65","\x6C\x69\x6B\x65\x6C\x79","\x6C\x74\x64","\x6D\x61\x79\x62\x65","\x6D\x65\x61\x6E\x74\x69\x6D\x65","\x6D\x65\x61\x6E\x77\x68\x69\x6C\x65","\x6D\x69\x6E\x65","\x6D\x69\x73\x73","\x6D\x6F\x72\x65","\x6D\x6F\x72\x65\x6F\x76\x65\x72","\x6D\x6F\x73\x74","\x6D\x6F\x73\x74\x6C\x79","\x6D\x72\x73","\x6D\x73","\x6D\x73\x66\x70\x68\x6F\x76\x65\x72","\x6D\x73\x69\x65","\x6D\x75\x63\x68","\x6D\x75\x73\x74","\x6D\x79","\x6D\x79\x73\x65\x6C\x66","\x6E\x61\x6D\x65\x6C\x79","\x6E\x65\x69\x74\x68\x65\x72","\x6E\x65\x74","\x6E\x65\x76\x65\x72","\x6E\x65\x76\x65\x72\x74\x68\x65\x6C\x65\x73\x73","\x6E\x6F\x62\x6F\x64\x79","\x6E\x6F\x6E\x65","\x6E\x6F\x6E\x65\x74\x68\x65\x6C\x65\x73\x73","\x6E\x6F\x6F\x6E\x65","\x6E\x6F\x72","\x6E\x6F\x74","\x6E\x6F\x77","\x6E\x6F\x77\x68\x65\x72\x65","\x6E\x62\x73\x70","\x6E\x75\x6C\x6C","\x6F\x66","\x6F\x66\x66","\x6F\x66\x74\x65\x6E","\x6F\x6E","\x6F\x6E\x63\x65","\x6F\x6E\x65","\x6F\x6E\x65\x27\x73","\x6F\x6E\x6C\x79","\x6F\x6E\x74\x6F","\x6F\x72","\x6F\x72\x67","\x6F\x74\x68\x65\x72","\x6F\x74\x68\x65\x72\x73","\x6F\x74\x68\x65\x72\x77\x69\x73\x65","\x6F\x75\x72","\x6F\x75\x72\x73","\x6F\x75\x72\x73\x65\x6C\x76\x65\x73","\x6F\x75\x74","\x6F\x76\x65\x72","\x6F\x76\x65\x72\x61\x6C\x6C","\x70\x65\x72","\x70\x65\x72\x68\x61\x70\x73","\x72\x61\x74\x68\x65\x72","\x73\x61\x6D\x65","\x73\x68\x65","\x73\x68\x65\x27\x64","\x73\x68\x65\x27\x6C\x6C","\x73\x68\x65\x27\x73","\x73\x68\x6F\x75\x6C\x64","\x73\x68\x6F\x75\x6C\x64\x6E","\x73\x68\x6F\x75\x6C\x64\x6E\x27\x74","\x73\x69\x6E\x63\x65","\x73\x6F\x6D\x65","\x73\x6F\x6D\x65\x68\x6F\x77","\x73\x6F\x6D\x65\x6F\x6E\x65","\x73\x6F\x6D\x65\x74\x68\x69\x6E\x67","\x73\x6F\x6D\x65\x74\x69\x6D\x65","\x73\x6F\x6D\x65\x74\x69\x6D\x65\x73","\x73\x6F\x6D\x65\x77\x68\x65\x72\x65","\x73\x72\x63","\x73\x74\x69\x6C\x6C","\x73\x75\x63\x68","\x74\x68\x61\x6E","\x74\x68\x61\x74","\x74\x68\x61\x74\x27\x6C\x6C","\x74\x68\x61\x74\x27\x73","\x74\x68\x65\x69\x72","\x74\x68\x65\x6D","\x74\x68\x65","\x74\x6F","\x74\x68\x65\x6D\x73\x65\x6C\x76\x65\x73","\x74\x68\x65\x6E","\x74\x68\x65\x6E\x63\x65","\x74\x68\x65\x72\x65","\x74\x68\x65\x72\x65\x27\x6C\x6C","\x74\x68\x65\x72\x65\x27\x73","\x74\x68\x65\x72\x65\x61\x66\x74\x65\x72","\x74\x68\x65\x72\x65\x62\x79","\x74\x68\x65\x72\x65\x66\x6F\x72\x65","\x74\x68\x65\x72\x65\x69\x6E","\x74\x68\x65\x72\x65\x75\x70\x6F\x6E","\x74\x68\x65\x73\x65","\x74\x68\x65\x79","\x74\x68\x65\x79\x27\x64","\x74\x68\x65\x79\x27\x6C\x6C","\x74\x68\x65\x79\x27\x72\x65","\x74\x68\x65\x79\x27\x76\x65","\x74\x68\x69\x73","\x74\x68\x6F\x73\x65","\x74\x68\x6F\x75\x67\x68","\x74\x68\x72\x65\x65","\x74\x68\x72\x6F\x75\x67\x68","\x74\x68\x72\x6F\x75\x67\x68\x6F\x75\x74","\x74\x68\x72\x75","\x74\x68\x75\x73","\x74\x6F\x67\x65\x74\x68\x65\x72","\x74\x6F\x6F","\x74\x6F\x77\x61\x72\x64","\x74\x6F\x77\x61\x72\x64\x73","\x75\x6E\x64\x65\x72","\x75\x6E\x6C\x65\x73\x73","\x75\x6E\x6C\x69\x6B\x65","\x75\x6E\x6C\x69\x6B\x65\x6C\x79","\x75\x6E\x74\x69\x6C","\x75\x70","\x75\x70\x6F\x6E","\x77\x61\x73","\x77\x61\x73\x6E","\x77\x61\x73\x6E\x27\x74","\x77\x65","\x77\x65\x27\x64","\x77\x65\x27\x6C\x6C","\x77\x65\x27\x72\x65","\x77\x65\x27\x76\x65","\x77\x65\x6C\x6C","\x77\x65\x72\x65","\x77\x65\x72\x65\x6E","\x77\x65\x72\x65\x6E\x27\x74","\x77\x68\x61\x74\x27\x6C\x6C","\x77\x68\x61\x74\x27\x73","\x77\x68\x61\x74\x65\x76\x65\x72","\x77\x68\x65\x6E","\x77\x68\x65\x6E\x63\x65","\x77\x68\x65\x6E\x65\x76\x65\x72","\x77\x68\x65\x72\x65","\x77\x68\x65\x72\x65\x61\x66\x74\x65\x72","\x77\x68\x65\x72\x65\x61\x73","\x77\x68\x65\x72\x65\x62\x79","\x77\x68\x65\x72\x65\x69\x6E","\x77\x68\x65\x72\x65\x75\x70\x6F\x6E","\x77\x68\x65\x72\x65\x76\x65\x72","\x77\x68\x65\x74\x68\x65\x72","\x77\x68\x69\x63\x68","\x77\x68\x69\x6C\x65","\x77\x68\x69\x74\x68\x65\x72","\x77\x68\x6F","\x77\x68\x6F\x27\x64","\x77\x68\x6F\x27\x6C\x6C","\x77\x68\x6F\x27\x73","\x77\x68\x6F\x65\x76\x65\x72","\x77\x68\x6F\x6C\x65","\x77\x68\x6F\x6D","\x77\x68\x6F\x6D\x65\x76\x65\x72","\x77\x68\x6F\x73\x65","\x77\x68\x79","\x77\x69\x6C\x6C","\x77\x69\x74\x68","\x77\x69\x74\x68\x69\x6E","\x77\x69\x74\x68\x6F\x75\x74","\x77\x6F\x6E","\x77\x6F\x6E\x27\x74","\x77\x6F\x75\x6C\x64","\x77\x6F\x75\x6C\x64\x6E","\x77\x6F\x75\x6C\x64\x6E\x27\x74","\x79\x65","\x79\x65\x73","\x79\x65\x74","\x79\x6F\x75","\x79\x6F\x75\x27\x64","\x79\x6F\x75\x27\x6C\x6C","\x79\x6F\x75\x27\x72\x65","\x79\x6F\x75\x27\x76\x65","\x79\x6F\x75\x72","\x79\x6F\x75\x72\x73","\x79\x6F\x75\x72\x73\x65\x6C\x66","\x79\x6F\x75\x72\x73\x65\x6C\x76\x65\x73","\x62\x79","\x61\x6C\x6C","\x61\x73","\x61\x74","\x72\x65","\x73\x6F","\x6E\x6F","\x69","\x77\x68\x61\x74"];    var videoids = [];
    var tagvideoids = [];    var vAverageids = [];
    var tags = [];        var _cleanVideoIds = [];
    var tagsData = [];    var tagData = [];     var _ADS = [];    var displayTags = [];
    var simplevalues = '';    var datacmnt = [];var _allInTitleResult = 0;
    var _statistics = [];    var _dayColor = 'orange';
    var week_color = 'green';    var recomend_ed = [];  
    var _ADVo = 0;
     var _transcriptVariables = [
        '',
        ''];var _titleResult = [];
    var _scorekw = 0; var nViews = [];    var _doubleQuotedResult = 0;var _allInTitleResult2 = 0;    var _allInTextResult = 0;    var _allInTextResult2 = 0;    var _allInAnchorResult2 = 0;    var _allInAnchorCleanResult = 0;    var _allInTitleCleanResult = 0;    var _allInTextCleanResult = 0;    var _totalResult = '';    var resultFetch = 0;
    var aSearchP = false;
    var _cleanSearch = '';    
    var _titleResultData = [];
    var _urlResultData = [];
    var scripts_t = [];  

    setTimeout(function(){
        
        aSearchP = $('#watch-related>li.related-list-item-compact-video').length ? false : true;
        
        if($('#masthead-search-term').length and& $('#masthead-search-term').val()){
            simplevalues = $('#masthead-search-term').val();
        }

        if($('#masthead-search').length and& $('#masthead-search').val()){
            simplevalues = $('#masthead-search').val();
        }

        $('body').on('click',function(){
            checkValue();
        });

        $('body').on('click','#closeTagModal',function(e){
            e.preventDefault();
            $('#modalTag').remove();
        }).on('click','#copyToClipboard',function(e){
            e.preventDefault();
            copyToClipboard(tags);
        }).on('click','#copyToClipboardData',function(e){
            e.preventDefault();
            copyToClipboard(tagsData);
        }).on('click','#copyToClipboardTitle',function(e){
            e.preventDefault();
            copyToClipboard(_titleResult);
        }).on('click','#copyToClipboardTitleData',function(e){
            e.preventDefault();
            copyToClipboard(_titleResultData);
        }).on('click','#copyToClipboardUrlData',function(e){
            e.preventDefault();
            copyToClipboard(_urlResultData);
        }).on('click','#copyToClipboardTranscriptData',function(e){
            e.preventDefault();
            var copied = [];
            copied.push('<iframe width="560" height="315" src="https://www.youtube.com/embed/'+$('meta[itemprop="videoId"]').attr('content')+'?rel=0&amp;modestbranding=1&amp;autohide=1&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>');
            copied.push('<p>'+$('#StartText').val()+'</p>');
            copied.push('<div class="videotranscript"><div id="faqs"><p><!-- Video Transcript --></p><div class="box-faq"><p class="question">Video Transcript</p></div><p class="faqs-a">');
            copied.push(scripts_t.join(' ').replace(/(?:\r\n|\r|\n)/g, ' '));
            copied.push('</p></div></div><p></script><link rel="stylesheet" href="https://s3.amazonaws.com/vidtranscripts/transcript.css" /><script src="https://s3.amazonaws.com/vidtranscripts/functions.js" type="text/javascript"></script></p>');

            copyToClipboard(copied);
        });


        $('#masthead-search').off().keyup(function(e){
            e.preventDefault();
            var code = e.which;
            if(code==13){
                checkValue();
            }
        });

        $('#search-btn').off().click(function(e){
            e.preventDefault();
            var result = '';

            if($('#masthead-search-term').length and& $('#masthead-search-term').val()){
                result = $('#masthead-search-term').val().split(' ').join('+');
            }

            if($('#masthead-search').length and& $('#masthead-search').val()){
                result = $('#masthead-search').val().split(' ').join('+');
            }

            window.location.href = 'https://www.youtube.com/results?search_query=' + result;
        });
        $('a.yt-uix-sessionlink').off().click(function(e){
            e.preventDefault();
            window.location.href = $(this).attr('href');
        });
        
        if('https://www.youtube.com/'!=window.location.href){
            var styleb = 'border: 1px solid;border-radius: 25px; padding: 5px 10px;color: #000000;display: inline-block;cursor: pointer;color: #000000;';
            var buttons =
                '<div id="titleBtns" style="display:none;">'
                
                
                    +'<button id="getTitle" style="'+styleb+'background: #3399ff;border: 1px solid;border-radius: 25px; ">Get Title</button><br />'+
                    '<button id="getTitleData" style="'+styleb+' background: #3399ff;  border: 1px solid;border-radius: 25px;">Get Title + Data</button><br />'+

                    
                '</div>'+
                '<button id="getTranscriptsData" style="'+styleb+' border: 1px solid;border-radius: 25px;background: #3399ff;display:block;display:none;">Get Transcripts</button>'+
                '<button id="getUrlData" style="'+styleb+'background: #3399ff;display:none;border: 1px solid;border-radius: 25px;">Get Data</button>'+
                '<button id="tagScrapperButton" style="'+styleb+'background: #3399ff;margin-left:1px;border: 1px solid;border-radius: 25px;">Get tags</button>'+
                '<button style="'+styleb+'background: #3399ff;margin-left:1px;display:none;" id="viewTags">View tags</button>' +
                '<button id="vTagsData" style="'+styleb+'display:none;background: #3399ff;margin-left:1px;">View tags + Data</button>' +
                '<button id="displayTags" style="'+styleb+'display:none;background: #3399ff;margin-left:1px;">Display Tags</button>';
            if( $('button[data-trigger-for="action-panel-stats"]').length){
                $('button[data-trigger-for="action-panel-stats"]').click();
            }else{
                $('#watch7-views-info').find('.watch-view-count').after('<div style="text-align:right;color: '+_dayColor+';">N/A views yesterday</div>');
                $('#watch7-views-info').find('.watch-view-count').after('<div style="text-align:right;color: '+week_color+';">N/A views last 7 days</div>');
            }

            if($('#watch-related>li.related-list-item-compact-video').length){
                videoids.push('/watch?v='+$('meta[itemprop="videoId"]').attr('content'));
                vAverageids.push($('meta[itemprop="videoId"]').attr('content'));
                $('span.view-count').find('.yt-badge-list ').remove();
                $('#watch7-sidebar-modules .watch-sidebar-body').find('li.related-list-item').each(function(index,li){
                    var href = '';
                    if($(li).hasClass('related-list-item-compact-playlist')){
                        var link = $(li).find('a');
                        href = link.attr('href').replace('/watch?','');
                        href = href.split('and');
                        href = href[0].replace('v=','');
                        videoids.push('/watch?v='+href);

                    }else{
                        href = $($(li).find('div.content-wrapper>a')[0]).attr('href');
                        videoids.push(href);
                    }
                    if($(li).find('span.view-count').text()=='Recommended for you' || !$(li).find('span.view-count').length || $(li).find('.yt-badge ').length){
                        nViews.push('/watch?v='+href.replace('/watch?v=',''));
                        if($(li).find('span.view-count').text()=='Recommended for you'){
                            recomend_ed.push(href.replace('/watch?v=',''));
                        }else{
                            if(!in_array(href.replace('/watch?v=',''),vAverageids)){
                                vAverageids.push(href.replace('/watch?v=',''));
                            }
                        }
                    }else{
                        if(!in_array(href.replace('/watch?v=',''),vAverageids)){
                            vAverageids.push(href.replace('/watch?v=',''));
                        }
                    }
                });
                if(nViews.length){

                }
            }else{
                _scorekw = parseInt($('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                var searchWords = $('#masthead-search-term').val().split(' ');
                var clean = [];
                for(var x=0;x<searchWords.length;x++){
                    if(!in_array(searchWords[x],words)){
                        clean.push(searchWords[x]);
                    }
                }
                _cleanSearch = clean.join(' ');

                getResultsNumbers();
                
                $($('#results>ol>li')[1]).find('ol>li').each(function(index,li){
                    if(typeof($(li).find('div.yt-lockup-tile').data('context-item-id'))!=='undefined'){
                        var videoid = $(li).find('div.yt-lockup-tile').data('context-item-id');
                        
                            if($(li).find('div.yt-lockup-tile').length>1){
                                $(li).find('div.yt-lockup-tile').each(function(iindex,idiv){
                                    if(!in_array('/watch?v='+$(idiv).data('context-item-id'),videoids)){
                                        videoids.push('/watch?v='+$(idiv).data('context-item-id'));
                                        recomend_ed.push($(idiv).data('context-item-id'));
                                    }
                                });
                            }else{
                                if(!in_array('/watch?v='+videoid,videoids)){
                                videoids.push('/watch?v='+videoid);
                                }
                            }
                        if(!$(li).find('.pyv-afc-ads-container').length and& $(li).find('div.yt-lockup-tile').length==1){
                            vAverageids.push(videoid);
                        }
                    }
                });
            }
            
            for(var x=0;x<videoids.length;x++){
                _cleanVideoIds.push(videoids[x].replace('/watch?v=','').split('and')[0]);
            }            
            console.log(_cleanVideoIds);
            getCommentCount(_cleanVideoIds);
            setTimeout(function(){
                var adscontainer = '<div style="color: #000000;background: #3399ff;padding: 5px 10px;display:inline-block;" id="advcontainer">'+                
                '<div id="logall" style="background: transparent"> <img src="http://sethbias.net/wp-content/uploads/2017/01/Tube_Scout01.png"  style="width: 73px;  height: 25px; "/></div>'+
                '</div>';
                 adscontainer += '<b><br/>'
           //     adscontainer += '<br /><div style="color: #000000;background: #3399ff;padding: 5px 10px;display:inline-block;" id="adscontainer">casdcsdc</div><br />';
                var kwbutton = aSearchP ? '<div id="getKwScore" style="border: 1px solid;border-radius: 25px;display:inline-block;background-color: rgba(0, 121, 224,0.6);padding: 5px 10px;color:#000000">Rank Difficulty: <span>'+_totalResult+'</span></div>':'';
                $('body').prepend('<div id="tagScrapper" style="position:fixed;width:200px;bottom:50px;left:50px;padding:3px;z-index: 9999999999;">'+adscontainer+kwbutton+''+buttons+'</div>');

                $('#tagScrapperButton').click(function(e){
                    e.preventDefault();
                    for(var x=0;x<videoids.length;x++){
                        var id = videoids[x].replace('/watch?v=','');
                        if(!in_array(id,recomend_ed)){
                            tagvideoids.push('/watch?v='+id);
                        }
                    }
                    for(var x=0;x<tagvideoids.length;x++){
                        var vid = tagvideoids[x].replace('/watch?v=','');
                        var style = 'position:absolute;background-color:rgba(255,255,255,0.8);z-index:99;width:100%;text-align:right;font-weight:bold;height:15px;font-size:12px;line-height: 1;color: #333;padding-top: 2px;';
                        if($('#watch-related>li.related-list-item-compact-video').length){
                            $('span[data-vid="'+vid+'"]').prepend('<span style="'+style+'">Video '+(x+1)+'</span>');
                        }else{
                            $('div[data-context-item-id="'+vid+'"]').find('span.yt-thumb-simple').prepend('<span style="'+style+'">Video '+(x+1)+'</span>');
                        }
                    }
                    watch(0);
                    $('#tagScrapperButton').prop('disabled',true);
                });
                $('#viewTags').click(function(e){
                    e.preventDefault();
                    $('body').prepend(
                        '<div id="modalTag" style="position:fixed;background-color:rgba(0,0,0,0.2);top:0;left:0;width:100%;height:100%;z-index: 19999999999;">'+
                        '<div id="modalTagmodal" style="position: fixed;top: 20%;left: 30%;width: 40%;background: #ffffff;">'+
                        '<div style="height:300px;overflow-x:auto;padding:10px;">'+
                        tags.join('<br />') +
                        '</div>'+
                        '<div id="modalBtns" style="text-align: center;">'+
                        '<button id="copyToClipboard" style="background: #4e62a9;color: #000000;padding: 10px;">Copy to Clipboard</button>'+
                        '<button id="closeTagModal" style="    background: #ec3939;padding: 10px;color: #000000;">Close</button>'+
                        '</div>'+
                        '</div>'+
                        '</div>'
                    );
                });

              

                $('#getTitle').click(function(e){
                    e.preventDefault();
                    $('body').prepend(
                        '<div id="modalTag" style="position:fixed;background-color:rgba(0,0,0,0.2);top:0;left:0;width:100%;height:100%;z-index: 19999999999;">'+
                        '<div id="modalTagmodal" style="position: fixed;top: 20%;left: 16%;width: 70%;background: #ffffff;">'+
                        '<div style="height:300px;overflow-x:auto;padding:10px;">'+
                        _titleResult.join('<br />') +
                        '</div>'+
                        '<div id="modalBtns" style="text-align: center;">'+
                        '<button id="copyToClipboardTitle" style="background: #4e62a9;color: #000000;padding: 10px;">Copy to Clipboard</button>'+
                        '<button id="closeTagModal" style="    background: #ec3939;padding: 10px;color: #000000;">Close</button>'+
                        '</div>'+
                        '</div>'+
                        '</div>'
                    );
                });
                  $('#vTagsData').click(function(e){

                    e.preventDefault();

                    $('body').prepend(
                        '<div id="modalTag" style="position:fixed;background-color:rgba(0,0,0,0.2);top:0;left:0;width:100%;height:100%;z-index: 19999999999;">'+
                        '<div id="modalTagmodal" style="position: fixed;top: 20%;left: 30%;width: 40%;background: #ffffff;">'+
                        '<div style="height:300px;overflow-x:auto;padding:10px;">'+
                        tagsData.join('<br />') +
                        '</div>'+
                        '<div id="modalBtns" style="text-align: center;">'+
                        '<button id="copyToClipboardData" style="background: #4e62a9;color: #000000;padding: 10px;">Copy to Clipboard</button>'+
                        '<button id="closeTagModal" style="    background: #ec3939;padding: 10px;color: #000000;">Close</button>'+
                        '</div>'+
                        '</div>'+
                        '</div>'
                    );
                });
                $('#getTitleData').click(function(e){
                    e.preventDefault();
                    $('body').prepend(
                        '<div id="modalTag" style="position:fixed;background-color:rgba(0,0,0,0.2);top:0;left:0;width:100%;height:100%;z-index: 19999999999;">'+
                        '<div id="modalTagmodal" style="position: fixed;top: 20%;left: 16%;width: 70%;background: #ffffff;">'+
                        '<div style="height:300px;overflow-x:auto;padding:10px;">'+
                        _titleResultData.join('<br />') +
                        '</div>'+
                        '<div id="modalBtns" style="text-align: center;">'+
                        '<button id="copyToClipboardTitleData" style="background: #4e62a9;color: #000000;padding: 10px;">Copy to Clipboard</button>'+
                        '<button id="closeTagModal" style="    background: #ec3939;padding: 10px;color: #000000;">Close</button>'+
                        '</div>'+
                        '</div>'+
                        '</div>'
                    );
                });

                $('#getTranscriptsData').click(function(e){
                    e.preventDefault();
                    $('body').prepend(
                        '<div id="modalTag" style="position:fixed;background-color:rgba(0,0,0,0.2);top:0;left:0;width:100%;height:100%;z-index: 19999999999;">'+
                        '<div id="modalTagmodal" style="position: fixed;top: 10%;left: 16%;width: 70%;background: #ffffff;">'+
                        
                        '<div style="padding:5px">'+
                            '<label class="label_title">Start text</label>' +
                            '<textarea id="StartText" class="wpInput" rows="3"></textarea>'+
                        '</div>'+
                        
                        '<div style="height:300px;overflow-x:auto;padding:10px;">'+
                            scripts_t.join(' ').replace(/(?:\r\n|\r|\n)/g, ' ') +
                        '</div>'+
                        
                        '<div id="modalBtns" style="text-align: center;">'+
                        '<button id="copyToClipboardTranscriptData" style="background: #4e62a9;color: #000000;padding: 10px;">Copy to Clipboard</button>'+
                        '<button id="closeTagModal" style="    background: #ec3939;padding: 10px;color: #000000;">Close</button>'+
                        '</div>'+
                        '</div>'+
                        '</div>'
                    );
                });

                $('#displayTags').click(function(){
                    $('.tagsDisplayed').remove();
                    var idDone = [];
                    for(var x=0;x<tagvideoids.length;x++){
                        var vid = tagvideoids[x].replace('/watch?v=','');
                        for(var y=0;y<displayTags.length;y++){
                            if(displayTags[y].videoId==vid){
                                if($('#watch-related>li.related-list-item-compact-video').length){
                                    if(x==0 and& !in_array(vid,idDone)){
                                        $('#watch-header').after('<div class="tagsDisplayed yt-card yt-card-has-padding"><b>Tags</b><br />'+(displayTags[y].tags.join(','))+'</div>');
                                        idDone.push(vid);
                                    }else if(!in_array(vid,idDone)){
                                        $('a[href^="/watch?v='+vid+'"]').parent().parent().append('<div style="padding:0 10px" class="tagsDisplayed"><b>Tags</b><br />'+(displayTags[y].tags.join(','))+'</div>');
                                    }
                                }else{
                                    $('div[data-context-item-id="'+vid+'"]').parent().append('<div style="padding:0 10px" class="tagsDisplayed"><b>Tags</b><br />'+(displayTags[y].tags.join(','))+'</div>');
                                }
                            }
                        }
                    }
                });


                if($('#watch-related>li.related-list-item-compact-video').length){

                    getStatsVideos(0);
                }else{
                    getSVS(0);
                }
                 $('#getUrlData').click(function(e){
                     e.preventDefault();
                    $('body').prepend(
                        '<div id="modalTag" style="position:fixed;background-color:rgba(0,0,0,0.2);top:0;left:0;width:100%;height:100%;z-index: 19999999999;">'+
                        '<div id="modalTagmodal" style="position: fixed;top: 15%;left: 9%;width: 81%;background: #ffffff;">'+
                        '<div style="height:300px;overflow-x:auto;padding:10px;">'+
                        _urlResultData.join('<br />') +
                        '</div>'+
                        '<div id="modalBtns" style="text-align: center;">'+
                        '<button id="copyToClipboardUrlData" style="background: #4e62a9;color: #000000;padding: 10px;">Copy to Clipboard</button>'+
                        '<button id="closeTagModal" style="    background: #ec3939;padding: 10px;color: #000000;">Close</button>'+
                        '</div>'+
                        '</div>'+
                        '</div>'
                    );
                 });
                $('button#action-panel-overflow-button').click();
                $('button[data-trigger-for="action-panel-transcript"]').click();

                
                if($('#transcript-scrollbox').length){


                }
                if($('button[data-trigger-for="action-panel-transcript"]').length){
                    transcript();
                }
            },4000);
            
        }
        $('button#action-panel-overflow-button').click();
        $('button[data-trigger-for="action-panel-transcript"]').click();
        
    },2000);
    
        
        function transcript(){
            $('button#action-panel-overflow-button').click();
            $('button[data-trigger-for="action-panel-transcript"]').click();
            if($('#transcript-scrollbox').length==0 || $('#transcript-scrollbox').find('.caption-line').length==0){
                setTimeout(function(){
                    transcript();
                },1000);
            }else{
                
                $.each($('#transcript-scrollbox').find('.caption-line'),function(ind,capt){
                    scripts_t.push($.trim($(capt).find('.caption-line-text').text()));
                });
                $('#getTranscriptsData').show().css('display','block');
            }
        }
    function escapeHTML(html) {
        return html.replace(/and/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
    }
    function getParameterByName(name, url) {
        if (!url) url = window.location.href;
        name = name.replace(/[\[\]]/g, "\\$and");
        var regex = new RegExp("[?and]" + name + "(=([^and#]*)|and|#|$)"),
            results = regex.exec(url);
        if (!results) return null;
        if (!results[2]) return '';
        return decodeURIComponent(results[2].replace(/\+/g, " "));
    }
    
    function watch(index){
        if(index<tagvideoids.length){
            $('#tagScrapperButton').prop('disabled',true);
            $('#tagScrapperButton').text((index+1) + ' of ' + tagvideoids.length);
            $.ajax({
                url : tagvideoids[index],
                success : function(data){
                    var tmpTags = [];
                    var reg = /<meta property="og:video:tag" content="([^"]+)">/g;
                    var metas = data.match(reg);
                    if(metas){
                        for(var x=0;x<metas.length;x++){
                            tmpTags.push($(metas[x]).attr('content'));
                            if(!in_array($(metas[x]).attr('content'),tags)){
                            tags.push($(metas[x]).attr('content'));
                        }
                        tagData.push({
                            keyword : $(metas[x]).attr('content'),
                            video : (index+1),
                            videoId : tagvideoids[index].replace('/watch?v=','')
                        });
                    }
                }
                    displayTags.push({
                        videoId : tagvideoids[index].replace('/watch?v=',''),
                        tags : tmpTags
                    });
                    setTimeout(function(){
                        watch(index+1);
                    },1000);

                },
                error: function(){
                    setTimeout(function(){
                        watch( index );
                    },5000);
                }
            });
        }else{
            var str = [];
            for(var x=0;x<tags.length;x++){
                var tmp = tags[x];
                var vids = [];
                for(var y=0;y<tagData.length;y++){
                    if(tags[x].toLowerCase()==tagData[y].keyword.toLowerCase()){
                        vids.push(tagData[y].video);
                    }
                }
                str.push(tags[x] + ', ' + (vids.join(',')));

            }
            tagsData = str;
            $('#viewTags,#vTagsData,#displayTags').show();
        }
    }

    function copyToClipboard(arrays,delimiter){
        var str = arrays.join('\n');
        var hiddeninput = $("<textarea></textarea>");

        $("body").append(hiddeninput);

        hiddeninput.val(str).select();

        document.execCommand("copy");

        hiddeninput.remove();
        alert('Copied');
    }

    function in_array(needle, haystack) {
        var length = haystack.length;
        var $break = false;
        for(var i = 0; i < length; i++) {
            if(haystack[i].toLowerCase() == needle.toLowerCase()) {$break = true;break;}
        }
        return $break;
    }

    function checkValue(){
        if($('#masthead-search-term').length and& $('#masthead-search-term').val() and& simplevalues!=$('#masthead-search-term').val()){
            window.location.reload();
        }

        if($('#masthead-search').length and& $('#masthead-search').val() and& simplevalues!=$('#masthead-search').val()){
            window.location.reload();
        }
    }

    function getStatsVideos( index ){

        if(index<videoids.length){

            var videoId = videoids[index].replace('/watch?v=','');

            var lstW = new Date(new Date().getTime() - 7 * 24 * 60 * 60 * 1000);
            var overall = 0;

            $.ajax({
                url : 'https://www.youtube.com/insight_ajax?action_get_statistics_and_data=1&v='+videoId,
                type : 'post',
                data : {session_token:$('input[name="session_token"]').val()},
                success : function(data){

                    var link = $('#watch7-sidebar-modules .watch-sidebar-body').find('a[href^="/watch?v='+videoId+'"]');

                    var dayText = 'N/A views yesterday';
                    var weekText = 'N/A views last 7 days';
                    var titText = '';
                    
                    if($(data).find('graph_data').length){
                        var text = index + 1;

                        var _data = JSON.parse($(data).find('graph_data').text());

                        var lastIndex = _data.day.data.length;

                        for(var x=7;x>0;x--){

                            if(typeof(_data.views.daily)!=='undefined' and& typeof(_data.day.data[lastIndex-x])!=='undefined'){

                                overall += _data.views.daily.data[lastIndex-x];
                            }
                        }

                        
                        if(index){
                            titText = $(link).find('span.title').text();

                            
                            if(typeof(_data.views.daily)!=='undefined'){

                                link.append('<span class="stat" style="color:'+_dayColor+'">'+_data.views.daily.data[lastIndex-1].toLocaleString()+' views yesterday</span>');

                                text = $(link).find('span.title').text() +', '+ (index + 1)+ ', ' + _data.views.daily.data[lastIndex-1] + 'views yesterday';
                                
                                dayText = _data.views.daily.data[lastIndex-1].toLocaleString() + ' views yesterday';

                                var week = 0;

                                if(overall){

                                    link.append('<span class="stat" style="color:'+week_color+'">'+overall.toLocaleString()+' views last 7 days</span>');

                                    week = overall;
                                    text+=', '+overall+' views last 7 days';
                                    weekText = overall.toLocaleString()+' views last 7 days';
                                }else{

                                    link.append('<span class="stat" style="color:'+week_color+'">N/A views last 7 days</span>');
                                    text+=', N/A views last 7 days';
                                }

                                if(in_array(videoId,vAverageids)){
                                    _ADS.push({
                                        videoid : videoId,
                                        daily : _data.views.daily.data[lastIndex-1],
                                        week : week
                                    });
                                }
                                _titleResult.push($(link).find('span.title').text());
                                _titleResultData.push(text);
                            }else{

                                $('#watch7-sidebar-modules .watch-sidebar-body').find('a[href^="/watch?v='+videoId+'"]').append('<span class="stat" style="color:'+_dayColor+'">N/A views yesterday</span>');
                                $('#watch7-sidebar-modules .watch-sidebar-body').find('a[href^="/watch?v='+videoId+'"]').append('<span class="stat" style="color:'+week_color+'">N/A views last 7 days</span>');
                                _titleResult.push($(link).find('span.title').text());
                                _titleResultData.push($(link).find('span.title').text() + ', '+ (index + 1) + ', '+ 'N/A views yesterday, N/A views last 7 days');
                            }
                            var commentCount = getVideoCommentCount(videoId);
                            link.append('<span class="stat" style="color:grey">'+commentCount+' comments</span>');
                        }else{
                            titText = $('#eow-title').text();


                            if(typeof(_data.views.daily)!=='undefined'){

                                $('#watch7-views-info').find('.watch-view-count').after(
                                    '<div style="text-align:right;color: '+_dayColor+';">'+
                                    _data.views.daily.data[lastIndex-1].toLocaleString()+' views yesterday'+
                                    '</div>' +
                                    '<div style="text-align:right;color: '+week_color+';">'+
                                    overall.toLocaleString()+' views last 7 days'+
                                    '</div>'
                                );

                                if(in_array(videoId,vAverageids)){
                                    _ADS.push({
                                        videoid : videoId,
                                        daily : _data.views.daily.data[lastIndex-1],
                                        week : overall
                                    });
                                }
                                _titleResult.push($('#eow-title').text());
                                _titleResultData.push($('#eow-title').text() + ', '+ (index + 1) + ', '+ _data.views.daily.data[lastIndex-1]+' views yesterday, '+overall+' views last 7 days');
                                dayText = _data.views.daily.data[lastIndex-1].toLocaleString()+' views yesterday';
                                weekText = overall.toLocaleString()+' views last 7 days';
                            }else{

                                 $('#watch7-views-info').find('.watch-view-count').after(
                                    '<div style="text-align:right;color: '+_dayColor+';">'+
                                        'N/A views yesterday'+
                                    '</div>' +
                                    '<div style="text-align:right;color: '+week_color+';">'+
                                        'N/A views last 7 days'+
                                    '</div>'
                                );
                                _titleResult.push($('#eow-title').text());
                                _titleResultData.push($('#eow-title').text() + ', '+ (index + 1) + ', '+ 'N/A views yesterday, N/A views last 7 days');
                            }
                        }
                    }else{

                        
                        $('#watch7-sidebar-modules .watch-sidebar-body').find('a[href^="/watch?v='+videoId+'"]').append('<span class="stat" style="color:'+_dayColor+'">N/A views yesterday</span>');
                        $('#watch7-sidebar-modules .watch-sidebar-body').find('a[href^="/watch?v='+videoId+'"]').append('<span class="stat" style="color:'+week_color+'">N/A views last 7 days</span>');
                        var commentCount = getVideoCommentCount(videoId);
                         $('#watch7-sidebar-modules .watch-sidebar-body').find('a[href^="/watch?v='+videoId+'"]').append('<span class="stat" style="color:grey">'+commentCount+' comments</span>');
                        _titleResult.push($(link).find('span.title').text());
                        _titleResultData.push($(link).find('span.title').text() + ', '+ (index + 1) + ', '+ 'N/A views yesterday, N/A views last 7 days');
                        titText = $(link).find('span.title').text();
                    }
                    _urlResultData.push(
                        'https://www.youtube.com/watch?v='+videoId+'\t'+
                        $.trim(titText)+'\t'+
                        dayText.replace(' views yesterday','')+'\t'+
                        weekText.replace(' views last 7 days','')
                    );

                    
                    setTimeout(function(){
                        getStatsVideos( index + 1 );
                    },100);
                },
                error: function(){

                    setTimeout(function(){
                        getStatsVideos( index );
                    },100);
                }
            });
        }else{
            advCalculations();
            $('#titleBtns').show();
            $('#getUrlData').show();
        }
    }
    
    function getSVS( indexOfI ){
        if(indexOfI<videoids.length){
            var videoId = videoids[indexOfI].replace('/watch?v=','');
            var lstW = new Date(new Date().getTime() - 7 * 24 * 60 * 60 * 1000);
            var overall = 0;
            $.ajax({
                url : 'https://www.youtube.com/insight_ajax?action_get_statistics_and_data=1&v='+videoId,
                type : 'post',
                data : {session_token:$('input[name="session_token"]').val()},
                success : function(data){
                    var target = $('div[data-context-item-id="'+videoId+'"]').find('.yt-lockup-content');
                    var text = indexOfI + 1;
                    var dayText = 'N/A views yesterday';
                    var weekText = 'N/A views last 7 days';
                    if($(data).find('graph_data').length){
                        var _data = JSON.parse($(data).find('graph_data').text());
                        var lastIndex = _data.day.data.length;

                        for(var x=7;x>0;x--){
                            if(typeof(_data.views.daily)!=='undefined' and& typeof(_data.day.data[lastIndex-x])!=='undefined'){
                                overall += _data.views.daily.data[lastIndex-x];
                            }
                        }

                        if(typeof(_data.views.daily)!=='undefined'){
                            var div = '<div class="stat" style="color:'+_dayColor+'">'+_data.views.daily.data[lastIndex-1].toLocaleString()+' views yesterday</div>';
                            text += ', ' + _data.views.daily.data[lastIndex-1].toLocaleString()+' views yesterday';
                            dayText = _data.views.daily.data[lastIndex-1].toLocaleString()+' views yesterday';
                            var week = 0;
                            
                            if(overall){
                                div += ('<div class="stat" style="color:'+week_color+'">'+overall.toLocaleString()+' views last 7 days</div>');
                                text += ', ' + overall+' views last 7 days';
                                week = overall;
                                weekText = overall.toLocaleString()+' views last 7 days';
                            }else{
                                div += ('<div class="stat" style="color:'+week_color+'">N/A views last 7 days</div>');
                                text += ', N/A views last 7 days';
                            }
                            if(in_array(videoId,vAverageids)){
                                _ADS.push({
                                    videoid : videoId,
                                    daily : _data.views.daily.data[lastIndex-1],
                                    week : week
                                });
                            }
                            var viewCount = getVideoCommentCount(videoId);
                            div += '<div class="stat" style="color:grey">'+viewCount+' comments</div>';
                            target.append(div);

                        }else{
                            $('div[data-context-item-id="'+videoId+'"]').find('.yt-lockup-content').append('<div class="stat" style="color:'+_dayColor+'">N/A views yesterday</div>'+'<div class="stat" style="color:'+week_color+'">N/A views last 7 days</div><div class="stat" style="color:grey">'+getVideoCommentCount(videoId)+' comments</div>');
                            text += ', N/A views yesterday, N/A views last 7 days';
                        }
                    }else{
                        $('div[data-context-item-id="'+videoId+'"]').find('.yt-lockup-content').append('<div class="stat" style="color:'+_dayColor+'">N/A views yesterday</div>'+'<div class="stat" style="color:'+week_color+'">N/A views last 7 days</div><div class="stat" style="color:grey">'+getVideoCommentCount(videoId)+' comments</div>');
                        text += ', N/A views yesterday, N/A views last 7 days';
                    }

                    _titleResult.push(target.find('a[href^="/watch?v='+videoId+'"]').text());
                    _titleResultData.push(target.find('a[href^="/watch?v='+videoId+'"]').text() + ', '+text);
                    _urlResultData.push(
                        'https://www.youtube.com/watch?v='+videoId+'\t'+
                        target.find('a[href^="/watch?v='+videoId+'"]').text()+'\t'+
                        dayText.replace(' views yesterday','')+'\t'+
                        weekText.replace(' views last 7 days','')
                    );
                    setTimeout(function(){
                        getSVS( indexOfI + 1 );
                    },100);
                },
                error: function(){
                    setTimeout(function(){
                        getSVS( indexOfI );
                    },100);
                }
            });
        }else{
            advCalculations();
            $('#titleBtns').show();
            $('#getUrlData').show();
        }
    }
    
  
    
    function getResultsNumbers(){

        $.ajax({
            url : 'https://www.youtube.com/results?search_query="'+$('#masthead-search-term').val().split(' ').join('+')+'"',
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _doubleQuotedResult = parseInt(number) * 4;
                cRDone(1);
            }
        });

        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allintitle%3A%22'+$('#masthead-search-term').val().split(' ').join('+')+'%22',
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInTitleResult = parseInt(number) * 4;
                cRDone(1);
            }
        });
        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allintitle%3A'+$('#masthead-search-term').val().split(' ').join('+'),
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInTitleResult2 = parseInt(number) * 1;
                cRDone(1);
            }
        });

        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allintext%3A'+$('#masthead-search-term').val().split(' ').join('+'),
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInTextResult = parseInt(number) * 1;
                cRDone(1);
            }
        });
        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allintext%3A%22'+$('#masthead-search-term').val().split(' ').join('+')+'%22',
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInTextResult2 = parseInt(number) * 1;
                cRDone(1);
            }
        });

        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allinanchor%3A'+$('#masthead-search-term').val().split(' ').join('+'),
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInTextResult = parseInt(number) * 1;
                cRDone(1);
            }
        });
        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allinanchor%3A%22'+$('#masthead-search-term').val().split(' ').join('+')+'%22',
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInAnchorResult2 = parseInt(number) * 3;
                cRDone(1);
            }
        });

        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allinanchor%3A'+_cleanSearch.split(' ').join('+'),
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInAnchorCleanResult = parseInt(number) * 1;
                cRDone(1);
            }
        });
        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allintitle%3A'+_cleanSearch.split(' ').join('+'),
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInTitleCleanResult = parseInt(number) * 2;
                cRDone(1);
            }
        });
        $.ajax({
            url : 'https://www.youtube.com/results?search_query=allintext%3A'+_cleanSearch.split(' ').join('+'),
            success : function(data){
                var number = ($(data).find('.num-results.first-focus').text().replace('About ','').replace(' results','').split(',').join(''));
                _allInTextCleanResult = parseInt(number) * 1;
                cRDone(1);
            }
        });
    }
     function pcessNv( index ){
        
        if(index<nViews.length){
            $.ajax({
                url : nViews[index],
                success : function(data){
                    var text = $(data).find('#watch7-views-info div.watch-view-count').text();
                    var link = $('#watch-related').find('a[href^="'+nViews[index]+'"]');
                    if(link.find('.view-count').length){
                        link.find('.view-count').text(text);
                    }else{
                        link.find('.attribution').after('<span class="stat view-count">'+text+'</span>');
                    }
                    setTimeout(function(){
                        pcessNv(index+1);
                    },1000);
                },
                error: function(){
                    setTimeout(function(){
                        pcessNv( index );
                    },2000);
                }
            });
        }
    }
      function filterOutliers(someArray) {  

        var values = someArray.concat();
        values.sort(function(a,b){
            return a-b;
        });
        
        var med = 0;
        var q1 = 0;
        var q3 = 0;

        if(values.length%2==0){
            med = (values[(values.length/2)-1] + values[(values.length/2)]) / 2;
            if(Math.floor(values.length/2)%2==0){
                q1 = (values[Math.floor(values.length/4)-1] + values[Math.floor(values.length/4)]) / 2;
                q3 = (values[Math.floor(values.length*.75)+1] + values[Math.floor(values.length*.75)]) / 2;
            }else{
                q1 = values[Math.floor(values.length/4)];
                q3 = values[Math.floor(values.length*.75)];
            }
        }else{
            med = values[Math.floor(values.length/2)];
            if(Math.floor(values.length/2)%2==0){
                q1 = (values[Math.floor(values.length/4)-1] + values[Math.floor(values.length/4)]) / 2;
                q3 = (values[Math.floor(values.length*.75)+1] + values[Math.floor(values.length*.75)]) / 2;
            }else{
                q1 = values[Math.floor(values.length/4)];
                q3 = values[Math.floor(values.length*.75)];
            }
        }
        var iqr = q3 - q1;
        var maxValue = q3 + iqr*1.5;
        var minValue = q1 - iqr*1.5;


        var filteredValues = values.filter(function(x) {
            return (x < maxValue) and& (x > minValue);
        });

        return filteredValues;

    }
    
    
    function getVideoCommentCount( videoId ){
        var cnt = 0;
        for(var x=0;x<datacmnt.length;x++){
            if(datacmnt[x].id==videoId.split('and')[0]){
                cnt = datacmnt[x].statistics.commentCount;
            }
        }
        return cnt;
    }
    function getCommentCount( videoIds ){
        $.ajax({
            url : 'https://marketbold.com/vidspyproapi/comments.php?ids='+videoIds.join(','),
            dataType : 'json',
            success : function(data){
                console.log(data);
                datacmnt = data.items;
            }
        });    
    }
    function cRDone( num ){
        resultFetch+=num;
        if(resultFetch>=10){
            var overall = _scorekw+_doubleQuotedResult+_allInTitleResult+_allInTitleResult2+_allInTextResu​lt+_allInTextResult2+_allInAnchorResult2+_allInAnchorCleanResult+_allInTitleClea​nResult+_allInTextCleanResult;
            overall = (overall / 10000) + (_allInTitleResult2 * 5);
            _totalResult = ((Math.round(overall)).toLocaleString());
            $('#getKwScore').find('span').text(_totalResult);
        }
        
    }
    
  
    
    function advCalculations(){
/*
/*
        var perDayTotal = 0;
        var total_over_theWeek = 0;
        var len = _ADS.length;
        var adstotal = 0;
        
        var dayout = [];
        var outweek = [];

        for(var x=0;x<len;x++){
            perDayTotal += _ADS[x].daily;
            total_over_theWeek += _ADS[x].week;
            dayout.push(_ADS[x].daily);
            outweek.push(_ADS[x].week);
        }

        perDayTotal = perDayTotal / len;
        total_over_theWeek = (total_over_theWeek / len) /7;
        adstotal = (perDayTotal + total_over_theWeek) / 2;

        $('#adscontainer').find('span').text(parseInt(adstotal).toLocaleString());


        dayout = filterOutliers(dayout);
        outweek = filterOutliers(outweek);
        len = dayout.length;
        perDayTotal = 0;
        for(var x=0;x<len;x++){
            perDayTotal += dayout[x];
        }
        perDayTotal = perDayTotal / len;

       // len = outweek.length;
       // total_over_theWeek = 0;
       // for(var x=0;x<len;x++){
        //    total_over_theWeek += outweek[x];
        //}
       // total_over_theWeek = (total_over_theWeek / len) /7;
      //  adstotal = (perDayTotal + total_over_theWeek) / 2;
     //   $('#advcontainer').find('span').text(parseInt(adstotal).toLocaleString());*/
    }
    
    $('body').prepend(
        '<style>' +
            'label.label_title {' +
                'display: block;' +
                'font-weight: bold;' +
                'margin-top: 10px;' +
            '}' +
            'select.wpInput,input.wpInput,textarea.wpInput {' +
                'width: calc(100% - 12px);' +
                'padding: 3px;' +
            '}' +
            'select.wpInput{' +
                'width: calc(100% - 140px);' +
            '}' +
            'a#getCategory{' +
                'padding: 5px 7px;' +
                'background: #12699c;' +
                'color: #000000;' +
            '}' +
            'a#getCategory:hover{' +
                'text-decoration:none;' +
            '}' +
            'span.dateTitle{'+
                'background: #ccc;'+
                'padding: 5px;'+
            '}'+
            '#dateTimeContainer{'+
                'border-top: 1px solid #e4e4e4;'+
                'display: inline-block;'+
                'border-bottom: 1px solid #e4e4e4;'+
            '}'+
            '#dateTimeContainer input,#dateTimeContainer select{'+
                'border:none'+
            '}'+
            '#dateTimeContainer select{'+
                'padding:3px;'+
            '}'+
        '</style>'
    );
    
})();
02-14-2017, 07:38 PM
Post: #23
RE: [REQ] - TubeScout (by Seth Bias)
(02-05-2017 09:30 AM)Droseby Wrote:  Thanks Menace-to-Gurus! Worked Like A Charm! Got it all working in less than 5 mins..INCREDIBLE this thing saves ALOT of time!


I have to tried this script but it's not working. Any advice? tq
03-14-2017, 09:48 AM
Post: #24
RE: [REQ] - TubeScout (by Seth Bias)
Nice to see that these guys come up with such new and creative methods...scroll down to see why tube scout is no longer on warrior plus - http://marketbold.com/vidspypro-register/ and the straight up "Ripped off Statement"




34.gif