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.

目前为 2017-12-02 提交的版本,查看 最新版本

  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. // @grant GM_xmlhttpRequest
  14. // @run-at document-start
  15. // @version 2.1.1
  16. // @namespace https://greasyfork.org/users/92186
  17. // @run-at document-start
  18. // ==/UserScript==
  19.  
  20.  
  21. if(document.URL.includes("https://www.dpstream.net/external_link/")) {
  22. window.onload = function(){
  23. var myregex = /onclick=\"window.open\(\\'(.*\/)/g;
  24. var match = myregex.exec(document.body.innerHTML);
  25. if(match.length == 2) {
  26. location.href = match[1].split(',')[0];
  27. }
  28. };
  29. return;
  30. }
  31.  
  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. });