Unlock All Medium.com Blogs

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

  1. // ==UserScript==
  2. // @name Unlock All Medium.com Blogs
  3. // @description Bypass all medium blogs paywall (external domains and subdomains too)
  4. // @version 1.2
  5. // @match *://*/*
  6. // @author SH3LL
  7. // @license MIT
  8. // @namespace https://gf.qytechs.cn/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");
  19.  
  20. const authorTag1 = document.querySelector('meta[data-rh="true"][name="author"]')
  21. const authorTag2 = document.querySelector('meta[property="article:author"]')
  22. if (authorTag1 || authorTag2) {
  23. const unlocked_page="https://medium.rest/query-by-url?urlPost="+window.location.href;
  24. console.log("Redirection to: "+unlocked_page);
  25. window.location.href=unlocked_page;
  26. } else {
  27. console.log("Medium.com AUTHOR TAG Not Found. Not Redirected !");
  28. }
  29. } else {
  30. console.log("Medium.com BLOG TAG Not Found. Not Redirected !");
  31. }
  32.  
  33. // Change the background color of medium.rest
  34. if(window.location.href.includes("medium.rest")){
  35. document.body.style.backgroundImage = 'none';
  36. let main_body = document.querySelector('.ci.bh.ez.fa.fb.fc');
  37. main_body.style.maxWidth="10000px";
  38. main_body.style.margin="0px";
  39. }
  40. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址