Unpaywall meetup.com

Remove paywall, unblur photos, enable scrolling, and re-enable dynamic content

  1. // ==UserScript==
  2. // @name Unpaywall meetup.com
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Remove paywall, unblur photos, enable scrolling, and re-enable dynamic content
  6. // @author louietyj
  7. // @match https://www.meetup.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. function unPaywall() {
  15. document.querySelectorAll('div#modal').forEach(el => {
  16. if (el.textContent.includes('Join Meetup+')) {
  17. el.style.display = 'none';
  18. }
  19. });
  20. }
  21.  
  22. function unblurPhotos() {
  23. const elements = document.querySelectorAll('.blur-sm');
  24. elements.forEach(element => {
  25. element.classList.remove('blur-sm');
  26. });
  27. }
  28.  
  29. function enableScrolling() {
  30. const style = document.createElement('style');
  31. style.textContent = `
  32. html, body {
  33. overflow: auto !important;
  34. overflow-y: auto !important;
  35. position: static !important;
  36. height: auto !important;
  37. }
  38. `;
  39. document.head.appendChild(style);
  40. }
  41.  
  42. function removeLocks() {
  43. const svgs = document.querySelectorAll('svg[data-src="https://secure.meetupstatic.com/next/images/design-system-icons/lock-outline.svg"]');
  44. svgs.forEach(svg => {
  45. svg.remove();
  46. });
  47. }
  48.  
  49. function removeInert() {
  50. document.querySelectorAll('.inert, [inert]').forEach(el => {
  51. el.classList.remove('inert');
  52. el.removeAttribute('inert');
  53. });
  54. };
  55.  
  56. function run() {
  57. unPaywall();
  58. unblurPhotos();
  59. enableScrolling();
  60. removeLocks();
  61. removeInert();
  62. }
  63.  
  64. //window.addEventListener('load', run);
  65. const observer = new MutationObserver(run);
  66. observer.observe(document.body, {
  67. childList: true,
  68. subtree: true
  69. });
  70. })();

QingJ © 2025

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