adshorte.shorte

adshorte.com,adshort.co,adshort.me,linksh.top,clik.pw,coshurl.co,cutwin.com用

  1. // ==UserScript==
  2. // @name adshorte.shorte
  3. // @namespace http://adshorte/
  4. // @include *://adshorte.com/*
  5. // @include *://adshort.co/*
  6. // @include *://adshort.me/*
  7. // @include *://linksh.top/*
  8. // @include *://clik.pw/*
  9. // @include *://coshurl.co/*
  10. // @include *://cutwin.com/*
  11. // @version 2.4.1.1
  12. // @description adshorte.com,adshort.co,adshort.me,linksh.top,clik.pw,coshurl.co,cutwin.com用
  13. // @grant none
  14. // @run-at document-end
  15. // ==/UserScript==
  16.  
  17. /*
  18. 2017/11/18 deprecated
  19. please use "AdsBypasser" and "Skip Redirect"
  20. */
  21.  
  22. /*
  23. (function() {
  24. if(location.href.indexOf("adshorte.com") != -1 || location.href.indexOf("adshort.co") != -1 || location.href.indexOf("adshort.me") != -1){
  25. var iframes = document.getElementsByTagName('iframe');
  26. for(var iframe of iframes){
  27. if(iframe.src.indexOf("dailymotion") != -1){
  28. iframe.parentNode.removeChild(iframe);
  29. }
  30. }
  31. }
  32. function evalInPage(fun) {
  33. location.href = "javascript:void (" + fun + ")()";
  34. }
  35. evalInPage(function () {
  36. checkAdblockUser = function(){
  37. console.info("nuke");
  38. }
  39. });
  40. })();
  41.  
  42. if(document.getElementById("link-view") !== null){
  43. function openSesame() {
  44. if (grecaptcha.getResponse(0) !== "") {
  45. document.getElementById("link-view").submit();
  46. clearInterval(b);
  47. }
  48. }
  49. var b = setInterval(openSesame, 500);
  50. }
  51.  
  52. if (document.getElementById("go-link") !== null) {
  53. var goForm = $("#go-link");
  54. var submitButton = goForm.find('button');
  55. $.ajax({
  56. dataType: 'json',
  57. type: 'POST',
  58. url: goForm.attr('action'),
  59. data: goForm.serialize(),
  60. success: function(result, status, xhr) {
  61. if (result.url) {
  62. location.href = result.url;
  63. } else {
  64. console.info(result.message);
  65. }
  66. },
  67. error: function(xhr, status, error) {
  68. console.log("An error occured: " + xhr.status + " " + xhr.statusText);
  69. },
  70. complete: function(xhr, status) {
  71. }
  72. });
  73. }
  74. */