uncloudflare.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. UNCloudflare - use the Internet Archive to browse to captcha'd sites.
  3. This tiny script can be compiled into a bookmarklet and used for browsing
  4. sites that are "protected" *ahem* by CloudFlare's annoying captchas.
  5. Why not just beat it, solve the captchas and proceed, you may ask. The answer:
  6. because even if you devote time and effort to doing this, CloudFlare requires
  7. the planting of a tracking cookie in your browser in order to "allow" you to
  8. browse their sites. This is unacceptable; why are we using torbrowser in first
  9. place again? Fuck this shitty proof of work.
  10. USAGE: "minify" this script using jscompress.com, jsmin or a similar service,
  11. then add a new bookmark on your browser. In the URL field, prepend
  12. `javascript:` and paste the minified content there.
  13. Copyright kzimmermann 2016 - All Rights Reserved.
  14. Licensed under the terms of the GNU GPL v3
  15. This program is free software: you can redistribute it and/or modify
  16. it under the terms of the GNU General Public License as published by
  17. the Free Software Foundation, either version 3 of the License, or
  18. (at your option) any later version.
  19. This program is distributed in the hope that it will be useful,
  20. but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. GNU General Public License for more details.
  23. You should have received a copy of the GNU General Public License
  24. along with this program. If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. (function () {
  27. "use strict";
  28. // choices of proxies are still few because I don't know many yet.
  29. // If you have other proxies available, let me know!
  30. var original = window.location.href,
  31. // Archive.org's webcrawler. Slow, but reliable. Also helps archiving!
  32. // proxy = "https://web.archive.org/web/";
  33. // anonymouse.org's free webproxy. Very fast, but no HTTPS.
  34. proxy = "http://anonymouse.org/cgi-bin/anon-www.cgi/";
  35. window.location.href = proxy + original;
  36. }());