TheEpochTimes Fixer

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

نووسەر
573dave
Daily installs
0
Total installs
0
Ratings
0 0 0
وەشان
0.4
Created
2024-10-09
Updated
2024-10-09
مۆڵەت
MIT
Applies to

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!