Embed - 废柴视频网

允许直接播放VIP视频❗

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Embed - 废柴视频网
// @namespace    https://greasyfork.org/zh-CN/users/108076
// @version      1.8.9
// @description  允许直接播放VIP视频❗
// @author       草木灰
// @match        http*://fcw.xxx/*
// @match        http*://fcw.cool/*
// @match        http*://newfcw.info/*
// @include      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?fcw[0-9][0-9]\.com(:[0-9]{1,5})?\/.*$)/
// @include      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?fcww[0-9][0-9]\.com(:[0-9]{1,5})?\/.*$)/
// @icon         https://www.google.com/s2/favicons?domain=fcw.xxx
// @grant        none
// ==/UserScript==

(function () {

    'use strict';

    var origin = document.location.origin;
    var PRO_VIDEO_ID = document.location.pathname.replace(/videos\/([\d]+)\/(.*)/, "embed/$1");
    // console.log(origin);

    if ($(".no-player").length === 1) {
        $('.player').html('<iframe width="100%" height="566" src=' + origin + PRO_VIDEO_ID + ' frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>');
    }
    // Your code here...
})();