TheEpochTimes Fixer

Enhances TheEpochTimes website: modifies URL, closes modals, hides ads, resizes grid, fixes width, scrolls to top

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
573dave
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
6
Βαθμολογίες
0 0 0
Έκδοση
0.4
Δημιουργήθηκε την
09/10/2024
Ενημερώθηκε την
09/10/2024
Μέγεθος
3 KB
Άδεια
MIT
Εφαρμόζεται σε

TheEpochTimes Fixer

This userscript enhances your browsing experience on TheEpochTimes website by automatically identifying your link as an email share (for free reading), closing registration modals and editing/hiding various elements for a cleaner reading experience.

Features:

  • Automatically appends "free viewing" parameters to the URL when visiting TheEpochTimes website.
  • Closes the "Continue Without Registration" modal that appears.
  • Hides the sidebar for a cleaner article view.
  • Removes in-article related stories for uninterrupted reading.
  • Hides the lower subscribe modal for a distraction-free experience.
  • Removes the recommendations grid at the end of articles.
  • Resizes the main content and article grid to utilize the full width of the page.

How it works:

  1. In the main window:
    • Appends utm_campaign=ref_share_btn, utm_source=ref_share, and utm_medium=email to the URL if not already present.
    • Hides various elements (sidebar, related stories, subscribe modal, recommendations grid) for a cleaner reading experience.
    • Resizes the main content grid to use the full width of the page, improving readability.
  2. In iframes:
    • Looks for the "Continue Without Registration" button and clicks it automatically.

Installation:

  1. Make sure you have a userscript manager installed in your browser (e.g., Tampermonkey, Greasemonkey).
  2. Click the "Install" button on this page to add the script to your userscript manager.
  3. Visit TheEpochTimes website, and the script will run automatically.

Notes:

  • This script runs on all pages of TheEpochTimes website.
  • It performs its actions silently, with minimal console logging.
  • The script periodically checks for and hides elements, which helps with dynamically loaded content.
  • If you encounter any issues or have suggestions for improvements, please leave a comment on this script's page.

Privacy:

With only 33 lines of code, you can easily see this script does not collect or transmit any personal data. It only modifies and interacts TheEpochTimes website.

License:

This script is released under the MIT License and written by Claude. Feel free to modify and distribute it, but please provide attribution to the original author.

Changelog:

  • v0.4 - Enhanced ad removal with comprehensive CSS rules, improved modal removal, added element hiding based on ID/class prefixes (51 lines total, 40 lines excluding metadata)
  • v0.3 - Highly optimized script, added scroll-to-top after modal closure, improved element hiding and grid resizing, added license and language metadata
  • v0.2 - Implemented article width fix, added functionality to hide sidebar and other elements
  • v0.1 - Initial release: basic UTM parameter handling and modal closing in iframes

Enjoy an improved, clutter-free browsing experience on TheEpochTimes with enhanced article readability!