SkillAgentSearch skills...

MXPlayer1080P

Tampermonkey script to set and keep MX Player quality at 1080P.

Install / Use

/learn @codingwithshawnyt/MXPlayer1080P
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

MXPlayer1080P

This repository contains a solution to automatically select and maintain 1080p video quality on mxplayer.in. It works by combining a one-time browser configuration with a userscript to bypass the client-side UI limitations for non-premium users.

Disclaimer

This project is for educational purposes to demonstrate how browser developer tools and userscripts can interact with a website's client-side code.

  • Terms of Service: Bypassing a paywall may violate a website's terms of service.
  • Support Creators: The most reliable way to access premium features and support the platform is by purchasing a subscription.
  • Client-Side Only: This method only bypasses user interface restrictions. It cannot bypass server-side checks. If MX Player validates your account status on the server before sending the video stream, this method may not work.

How It Works

This solution uses a two-part system that works as a team:

  1. DevTools Overrides (The Safety Net): You will save a local, modified copy of one of the site's JavaScript files. This modified file permanently disables the "paywall check" that runs when you click a high-quality option, making the button "safe" to click. This is a one-time setup.
  2. Tampermonkey Script (The Auto-Selector): A userscript that automatically runs on MX Player pages. It waits for the video player to load and then programmatically selects the 1080p option for you, checking periodically to make sure it stays that way.

Requirements

  • A Chromium-based browser (Google Chrome, Microsoft Edge, Brave, etc.).
  • The Tampermonkey browser extension.

Setup Instructions

Follow these two parts carefully. You only need to do this setup once.


Part 1: The DevTools Override (The Safety Net)

This is the most critical step. Its purpose is to defuse the paywall logic.

Important: This fix only works when the Developer Tools panel (F12) is open.

  1. Open Developer Tools: Navigate to any video page on mxplayer.in. Press F12 (or Cmd+Option+I on Mac) to open DevTools.

  2. Enable Local Overrides:

    • In DevTools, go to the "Sources" tab.
    • In the left-hand pane, find the "Overrides" sub-tab (you may need to click the » icon to find it).
    • Click "+ Select folder for overrides". Your computer will prompt you to choose a folder. Create a new, empty folder on your machine (e.g., mxplayer-overrides) and select it.
    • The browser will show a security prompt at the top of the screen. Click "Allow".
  3. Find the Target Script:

    • While still in DevTools, press Ctrl+Shift+F (or Cmd+Option+F on Mac) to open the Global Search.
    • In the search bar, type the following exact text and press Enter: e.id>720&&!f
  4. Save the Script for Overrides:

    • The search will show a result in a .js file (e.g., external-....js).
    • Right-click on the filename in the search results and select "Save for overrides".
  5. Apply the Patch:

    • A copy of the file will now appear in your "Overrides" section, and the file will open in the editor.
    • Find the line of code containing the logic you searched for. It will look similar to this: onClick:function(n){n.stopPropagation(),e.id>720&&!f?(b("/plans...
    • Carefully edit this line, replacing only the !f part with the word false.

    BEFORE:

    onClick:function(n){n.stopPropagation(),e.id>720&&!f?(b("/plans...
    

    AFTER:

    onClick:function(n){n.stopPropagation(),e.id>720&&false?(b("/plans...
    
  6. Save the Overridden File: Press Ctrl+S (or Cmd+S). A purple dot will appear next to the filename in the file tree, confirming that your local override is active.


Part 2: The Tampermonkey Script (The Auto-Selector)

This script will handle the automatic selection for you.

  1. Install Tampermonkey: If you haven't already, install the Tampermonkey extension for your browser.
  2. Create a New Script:
    • Click the Tampermonkey icon in your browser's toolbar and select "Create a new script...".
    • A new tab will open with a default script template.
  3. Add the Code: Delete all the template text and copy-paste the entire code from the MX Player - 1080p Guardian (v7 - Final)-2025.06.13.7.user.js file into the editor.
  4. Save the Script: Go to the "File" menu in the script editor and click "Save".

Usage

With both parts of the setup complete, the workflow is very simple:

  1. Navigate to any movie, show, or episode on mxplayer.in.
  2. Press F12 to open the Developer Tools (this is required to activate your override). You can keep it docked and minimized.
  3. Let the page load. The Tampermonkey script will now automatically perform the clicks needed to select 1080p quality for you. It will also re-check every minute to ensure the quality hasn't been changed.

You no longer need to manually click anything or enter any console commands.

Troubleshooting

  • It stopped working after a site update: If MX Player updates its website, the name of the .js file or the structure of the code might change. You may need to repeat Part 1 to find the new file and re-apply the patch. The Tampermonkey script may also need its selectors updated if the button class names change.
  • The video fails to play at 1080p: If the UI shows 1080p but the video doesn't load, it means MX Player is using a server-side check that cannot be bypassed by this method.
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated3mo ago
Forks2

Languages

JavaScript

Security Score

82/100

Audited on Dec 28, 2025

No findings