Auto Fix Hidden Content and Remove All Signup Prompts from Daily Mail

Automatically remove max-height, overflow hidden, and remove subscription pop-ups

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
broskii22
1日のインストール数
0
累計インストール数
10
評価
0 0 0
バージョン
1.4
作成日
2024/10/07
更新日
2024/10/07
ライセンス
MIT
対象サイト
すべてのサイト

This script is designed to automatically remove certain visual obstructions and modify page content on websites, such as news pages with paywalls. It does the following:

Remove Hidden Content Restriction: It identifies HTML elements that have a limited max-height and hidden overflow (such as article bodies), ensuring all content is fully visible by changing those style properties to maxHeight = 'none' and overflow = 'visible'.

Remove Subscription Prompts: It detects and removes subscription pop-up prompts or banners that block access to content. Specifically, it targets elements with classes like .signUpInner-D8IiK and .signUpTopStripText-19DC9c to prevent them from appearing.

The script uses an event listener to wait until the page is fully loaded (window.addEventListener('load')) before executing, ensuring that all dynamic content is accounted for. This way, the script runs automatically on every webpage visit without manual intervention.