SkipButtons

Try to take over the world!

当前为 2016-02-07 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name SkipButtons
  3. // @namespace https://greasyfork.org/en/users/29638-guy
  4. // @version 1.2.4-unoffical
  5. // @description Try to take over the world!
  6. // @author R.F Geraci, Guy
  7. // @copyright 2014+, RGSoftware (2016+, Guy)
  8. // ============ Video Links Indexers ============
  9. // @include *projectfree-tv.to/cale.html?r=*
  10. // @include *thewatchseries.to/cale.html?r=*
  11. // @include *watchseries.li/link/*
  12. // @include *watchseries.ag/open/cale/*
  13. // @include *spainseries.lt/open/cale/*
  14. // @include *watchseries.vc/open/cale/*
  15. // @include *watchtvseries.vc/open/cale/*
  16. // @include *watchtvseries.se/open/cale/*
  17. // @include *primeseries.to/open/cale/*
  18. // @include *watchseries.lt/open/cale/*
  19. // @include *.watchseries1.eu/watch/link/*
  20. // ============ Video Hosters ============
  21. // @include *auroravid.to/video/*
  22. // @include *bitvid.sx/file/*
  23. // @include *vodlocker.com/*
  24. // @include *vidbull.com/*
  25. // @include *daclips.in/*
  26. // @include *movpod.in/*
  27. // @include *vidto.me/*
  28. // @run-at document-body
  29. // @icon64 http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/64/Apps-clock-icon.png
  30. // @grant none
  31. // @require http://code.jquery.com/jquery-latest.min.js
  32. // ==/UserScript==
  33. /* jshint -W097 */
  34. 'use strict';
  35. // Orginal script: https://greasyfork.org/scripts/3948-bypass-button-countdowns/
  36. // No hard feelings, R.F Geraci, I just wanted a more updated version! -Guy
  37.  
  38. // *watchtvseries.to/open/cale/* -- under maintence (but also watch-tv-series.to / )
  39.  
  40. function getVideoURL() {
  41. // seems to be unnecessary when using $(document).ready() instead of window.onload
  42. return atob(window.location.search.substr(3)); // decode url from base64 to string
  43. }
  44.  
  45. function SkipClass(objClass){
  46. var className = document.getElementsByClassName(objClass)[0];
  47. if (className !== undefined){
  48. //window.location.href = className.href;
  49. className.click();
  50. }
  51. }
  52.  
  53. function SkipId(objId){
  54. var oId = document.getElementById(objId);
  55. if (oId !== undefined){
  56. oId.disabled = null;
  57. //window.location.href = oId.href;
  58. //oId.value = "Proceed";
  59. oId.click();
  60. }
  61. }
  62.  
  63. $(document).ready(function() {
  64. // Vieo url Indexers
  65. SkipClass('btn btn-info btn-lg'); // watchseries1.eu
  66. SkipClass('push_button blue'); // newer watchseries.to based webpages
  67. SkipClass('myButton'); // older watchseries based webpages
  68. // Video Hosts
  69. SkipId('submitButton'); // unknown, left it in for w/e reason
  70. SkipId('btn_download'); // gorillavid / vodlocker / vidbull / daclips / movpod / vidto
  71. SkipClass('btn') // auroravid / bitvid
  72. });