bypass.me

Bypass viid.me (present on dpstream.net by example) and sh.st. Thanks to the site checkshorturl.com. By adding good includes, must work with adf.ly, etc.

目前为 2018-01-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name bypass.me
  3. // @name:fr bypass.me
  4. // @description Bypass viid.me (present on dpstream.net by example) and sh.st. Thanks to the site checkshorturl.com. By adding good includes, must work with adf.ly, etc.
  5. // @description:fr Permet de contourner les 5 secondes de viid.me et sh.st (liens présents sur dpstream.net par exemple). Doit aussi marcher avec adf.ly ou d'autre, à essayer
  6. // @include http://viid.me/*
  7. // @include http://sh.st/*
  8. // @include http://clkmein.com/*
  9. // @include http://corneey.com/*
  10. // @include http://destyy.com/*
  11. // @include http://gestyy.com/*
  12. // @include https://www.dpstream.net/external_link/*
  13. // @include https://www.dpstream.net/*
  14. // @grant GM_xmlhttpRequest
  15. // @run-at document-start
  16. // @version 2.25
  17. // @namespace https://greasyfork.org/users/92186
  18. // @run-at document-start
  19. // ==/UserScript==
  20.  
  21.  
  22. if(document.URL.includes("https://www.dpstream.net/external_link/")) {
  23.  
  24. window.onload = function(){
  25.  
  26. var myregex = /onclick=\"window.open\(\\'(.*)\\',/g;
  27. var match = myregex.exec(document.body.innerHTML);
  28.  
  29. if(match.length == 2) {
  30. location.href = match[1];
  31. } else {
  32. var apiUrl = 'http://checkshorturl.com/expand.php?u=';
  33. var shortUrl = document.URL;
  34.  
  35. window.stop();
  36.  
  37. var ret = GM_xmlhttpRequest({
  38. method: "GET",
  39. url: apiUrl + shortUrl,
  40. onload: function(res) {
  41. var div = document.createElement('div');
  42. div.innerHTML = res.responseText ;
  43. var result = div.getElementsByTagName('table')[0].rows[0].cells[1];
  44. expandedUrl = result.textContent;
  45. location.href = expandedUrl;
  46.  
  47. }
  48. });
  49. }
  50. };
  51. }
  52.  
  53. window.onload = function () {document.getElementById("loginModelForNotConnected").id = "noMoreModel";};
  54.