VaughnLive.tv

Just a clean VaughnLive , that bypass ads restriction

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        VaughnLive.tv
// @namespace   Adios Facebook, pueblicidad, ads, etc.
// @run-at      document-end
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @include     *://vaughnlive.tv*
// @exclude     *://vaughnlive.tv/*chat*
// @version     1.5
// @dateLast	2017.04.08
// @grant       none
// @description Just a clean VaughnLive , that bypass ads restriction
// ==/UserScript==

var $vg = jQuery.noConflict();

function geto(){
  if(window.location.href.indexOf('embed') > -1 && window.location.href.indexOf('chat') < 0 && top.window.location.href.indexOf('vaughnlive') > -1) {
  	var getadrres = document.location.href;
  	var nukelii = getadrres.replace(/\?viewers.+/gi,'');
  	var stuped = nukelii.replace(/.+embed\/video\//gi,'http://vaughnlive.tv/');
    top.location.href = stuped;
  }
  $vg( 'div.theChat, div.theChatToggle, div.theBar, div#vs_chat_vaughn, div.theMenu, div.clear, div.theTop, div.modalv3, div#browseWindow, div#dashboardWindow, div#mvn, div#loading, div#topBarV2wrapper, div#topBarV2toggle, div#videoHeader, div#videoStatus, div.spacer10px, div.theAboutWrap, div.aboutHeader_left, div.theAboutWrap2' ).each(function() {
  	$vg( this ).remove();
  });
  setTimeout(master, 1500);
}

function master(){
  $vg( 'script,style,br,table,p,head,noscript,#vs_chat_vaughn' ).each(function() {
    $vg( this ).remove();
  });
  $vg('#vsPlayer').unwrap();
  $vg('#vsPlayer').unwrap();
  $vg('#vsPlayer').unwrap();
  $vg('#vsPlayer').unwrap();
  $vg('#vsPlayer').unwrap();
  $vg('#vsPlayer').unwrap();
  $vg('#vsPlayer').unwrap();
  $vg( 'div' ).each(function() {
    $vg( this ).remove();
  });
}

setTimeout(geto, 500);