Greasy Fork

New Userscript

try to take over the world!

当前为 2018-08-08 提交的版本,查看 最新版本

// ==UserScript==
// @name         New Userscript
// @include      https://www.cda.pl/video/*
// @version      0.1
// @description  try to take over the world!
// @author       You
// @grant        none
// @namespace http://tampermonkey.net/
// ==/UserScript==

(function() {
    'use strict';
    var answer = confirm("Przejść do filmu?")
    if (answer) {
    if(window.location.href.search("cda.pl/video")!=-1){window.location.href=document.getElementsByTagName('html')[0].innerHTML.substring(document.getElementsByTagName('html')[0].innerHTML.search("preload=\"none\"") + 20, document.getElementsByTagName('html')[0].innerHTML.search("mp4")+3);}
    }
    })();