Greasy Fork

SkipButtons

Try to take over the world!

目前为 2016-02-07 提交的版本。查看 最新版本

// ==UserScript==
// @name         SkipButtons
// @namespace    http://tampermonkey.net/
// @version      1.2.2-unoffical
// @description  Try to take over the world!
// @author       R.F Geraci, Guy
// @copyright    2014+, RGSoftware (2016+, Guy)
// ============ Video Links Indexers ============
// @include      *projectfree-tv.to/cale.html?r=*
// @include      *thewatchseries.to/cale.html?r=*
// @include      *watchseries.li/link/*
// @include      *watchseries.ag/open/cale/*
// @include      *spainseries.lt/open/cale/*
// @include      *watchseries.vc/open/cale/*
// @include      *watchtvseries.vc/open/cale/*
// @include      *watchtvseries.se/open/cale/*
// @include      *primeseries.to/open/cale/*
// @include      *watchseries.lt/open/cale/*
// @include      *.watchseries1.eu/watch/link/*
// ============ Video Hosters ============
// @include      *auroravid.to/video/*
// @include      *bitvid.sx/file/*
// @include      *vodlocker.com/*
// @include      *vidbull.com/*
// @include      *daclips.in/*
// @include      *movpod.in/*
// @include      *vidto.me/*
// @run-at       document-body
// @icon64       http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/64/Apps-clock-icon.png
// @grant        none
// @require      http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==
/* jshint -W097 */
'use strict';
// Orginal script: https://greasyfork.org/scripts/3948-bypass-button-countdowns/
// No hard feelings, R.F Geraci, I just wanted a more updated version! -Guy

//    *watchtvseries.to/open/cale/* -- under maintence (but also watch-tv-series.to / )

function getVideoURL() {
    // seems to be unnecessary when using $(document).ready() instead of window.onload
    return atob(window.location.search.substr(3)); // decode url from base64 to string
}

function SkipClass(objClass){
    var className = document.getElementsByClassName(objClass)[0];
    if (className !== undefined){
        //window.location.href = className.href;
        className.click();
    }
}

function SkipId(objId){
    var oId = document.getElementById(objId);
    if (oId !== undefined){
        oId.disabled = null;
        //window.location.href = oId.href;  
        //oId.value = "Proceed";
        oId.click();
    }
}

$(document).ready(function() {
    // Vieo url Indexers
    SkipClass('btn btn-info btn-lg'); // watchseries1.eu
    SkipClass('push_button blue'); // newer watchseries.to based webpages
    SkipClass('myButton'); // older watchseries based webpages
    // Video Hosts
    SkipId('submitButton'); // unknown, left it in for w/e reason
    SkipId('btn_download'); // gorillavid / vodlocker / vidbull / daclips / movpod / vidto
    SkipClass('btn') // auroravid / bitvid
});