Unlock All Medium.com Blogs

Bypass all medium blogs paywall (external domain and subdomains too)

目前为 2025-01-28 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Unlock All Medium.com Blogs
  3. // @description Bypass all medium blogs paywall (external domain and subdomains too)
  4. // @version 1.0
  5. // @match *://*/*
  6. // @author SH3LL
  7. // @license MIT
  8. // @namespace https://greasyfork.org/users/762057
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Medium tag hook
  15. const mediumTag = document.querySelector('meta[data-rh="true"][property="og:site_name"][content="Medium"]');
  16. // Check the tag
  17. if (mediumTag) {
  18. console.log("Medium.com TAG Found: <meta data-rh='true' property='og:site_name' content='Medium'>");
  19.  
  20. const authorTag = document.querySelector('meta[data-rh="true"][name="author"]')
  21. if (authorTag) {
  22. const unlocked_page="https://medium.rest/query-by-url?urlPost="+window.location.href;
  23. console.log("Redirection to: "+unlocked_page);
  24. window.location.href=unlocked_page;
  25. } else {
  26. console.log("Medium.com AUTHOR TAG Not Found. Not Redirected !");
  27. }
  28. } else {
  29. console.log("Medium.com BLOG TAG Not Found. Not Redirected !");
  30. }
  31. })();