Sleazy Fork is available in English.

Xtube Without Sponsored Content

Cleans up sponsored content

2015/12/11時点のページです。最新版はこちら。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name       Xtube Without Sponsored Content
// @description  Cleans up sponsored content
// @namespace  xtube
// @version    0.3
// @match        http*://www.xtube.com/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @run-at document-end
// ==/UserScript==
$('div.advertisement').remove();
$('a.clearfix').remove();
$('li.pull-right').remove();
$('h2.h1').remove();
$('section.overviewPage>div:nth-child(5)').remove();
// Remove premium content in index.
$('div.col-xs-24>ul>li').each(function(){
    if ($(this).find('article>a>span>span').text() === 'Premium') {
        $(this).remove();
    }
});
// Remove sponsored content in index.
$('section.overviewPage>div>ul>li').each(function(){
    if ($(this).find('article>dl>dd>a').text() === 'xtube_sponsor') {
        $(this).remove();
    }
});
// Remove sponsored content in search results.
$('section.row>div>div>ul>li').each(function(){
    if ($(this).find('article>dl>dd>a').text() === 'xtube_sponsor') {
        $(this).remove();
    }
});
// Remove premium content below query index.
$('div.mainContent>ul>li').each(function(){
    if ($(this).find('article>a>span>span').text() === 'Premium') {
        $(this).remove();
    }
});
// Remove sponsored content beside video player.
var relatedVideos = null;
$('div#related_videos>div').each(function(){
    relatedVideos = $(this).text().split(' ');
    for (var i = relatedVideos.length - 1; i >= 0; i--) {
      if (relatedVideos[i] === '0:15') {
          $(this).prev().remove();
          $(this).remove();
      }
    };
});
// Remove sponsored content below video player.
$('div#watchPageLeft>div>div').each(function(){
    if ($(this).find('a>span:nth-child(3)').text() === '0:15') {
        $(this).remove();
    }
});
// Remove sponsored content in full related videos view.
$('div.Card-list>article').each(function(){
    if ($(this).find('div>div>div:nth-child(3)').text() === '0:15') {
        $(this).remove();
    }
});