AliasIO / demodal

Demodal is a browser extension that automatically removes content blocking modals including paywalls, discount offers, promts to sign up or enter your email address and more.
https://www.demodal.com
MIT License
245 stars 22 forks source link

Add weather.com definitions to paywall.json #12

Closed jeffmo closed 2 years ago

jeffmo commented 2 years ago

Removes paywall modal from weather.com.

Example test url: https://weather.com/weather/today/l/814cccae5a35eb448d2585b01999033fced9c4fa475ad736fc1d7ec76f253d68

Screen Shot 2022-04-08 at 11 05 43 AM
AliasIO commented 2 years ago

Thanks! I think these rules can probably combined:

"*.weather.com": {
  "if $(.tp-modal-open)": {
    ".tp-modal-open": "removeClass tp-modal-open",
    ".tp-modal": "remove",
    ".tp-backdrop": "remove"
  }
}

I do think this rule may be too broad as it removes every modal. Do you know if weather.com uses modals for logins or anything else? The modal doesn't show for me, do you know how I can trigger it?