SkipButtons

Try to take over the world!

当前为 2016-03-06 提交的版本,查看 最新版本

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