SkipButtons

Try to take over the world!

  1. // ==UserScript==
  2. // @name SkipButtons
  3. // @namespace https://greasyfork.org/en/users/29638-guy
  4. // @version 1.2.7-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*
  10. // @include *thewatchseries.to/cale*
  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. // @include *nowvideo.sx/*
  29. // @include *filehoot.com/*
  30. // @run-at document-body
  31. // @icon64 http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/64/Apps-clock-icon.png
  32. // @grant none
  33. // @require http://code.jquery.com/jquery-latest.min.js
  34. // ==/UserScript==
  35. /* jshint -W097 */
  36. 'use strict';
  37. // Orginal script: https://greasyfork.org/scripts/3948-bypass-button-countdowns/
  38. // No hard feelings, R.F Geraci, I just wanted a more updated version! -Guy
  39.  
  40. // *watchtvseries.to/open/cale/* -- under maintence (but also watch-tv-series.to / )
  41.  
  42. function getVideoURL() {
  43. // seems to be unnecessary when using $(document).ready() instead of window.onload
  44. return atob(window.location.search.substr(3)); // decode url from base64 to string
  45. }
  46.  
  47. function SkipClass(objClass){
  48. var className = document.getElementsByClassName(objClass)[0];
  49. if (typeof(className) !== "undefined") {
  50. //window.location.href = className.href;
  51. console.log(objClass);
  52. if (className.className === 'myButton') window.location.href = getVideoURL(); // some pages doesnt like me .click()'ing on stuff..
  53. className.click();
  54. }
  55. }
  56.  
  57. function SkipId(objId){
  58. var oId = document.getElementById(objId);
  59. if (oId !== null) {
  60. console.log(objId);
  61. oId.disabled = false;
  62. //window.location.href = oId.href;
  63. //oId.value = "Proceed";
  64. oId.click();
  65. }
  66. }
  67.  
  68. $(window).load(function() {
  69. //$(document).ready(function() {
  70. // Video url Indexers
  71. SkipClass('btn btn-info btn-lg'); // watchseries1.eu
  72. SkipClass('push_button blue'); // newer watchseries.to based webpages
  73. SkipClass('myButton'); // older watchseries based webpages
  74. SkipClass('btn btn-success btn-lg'); // FileShoot.com
  75. // Video Hosts
  76. SkipId('submitButton'); // unknown, left it in for w/e reason
  77. SkipId('btn_download'); // gorillavid / vodlocker / vidbull / daclips / movpod / vidto
  78. // 'btn' is just causing problems becuase search-functions of other webpages has it as class
  79. if (window.location.href.indexOf('auroravid') > -1 ||
  80. window.location.href.indexOf('bitvid') > -1 ||
  81. window.location.href.indexOf('nowvideo') > -1
  82. ) {
  83. SkipClass('btn') // auroravid / bitvid / nowvideo
  84. }
  85. });