MXPlayer1080P
Tampermonkey script to set and keep MX Player quality at 1080P.
Install / Use
/learn @codingwithshawnyt/MXPlayer1080PREADME
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:
- 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.
- 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.
-
Open Developer Tools: Navigate to any video page on
mxplayer.in. PressF12(orCmd+Option+Ion Mac) to open DevTools. -
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".
-
Find the Target Script:
- While still in DevTools, press
Ctrl+Shift+F(orCmd+Option+Fon Mac) to open the Global Search. - In the search bar, type the following exact text and press Enter:
e.id>720&&!f
- While still in DevTools, press
-
Save the Script for Overrides:
- The search will show a result in a
.jsfile (e.g.,external-....js). - Right-click on the filename in the search results and select "Save for overrides".
- The search will show a result in a
-
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
!fpart with the wordfalse.
BEFORE:
onClick:function(n){n.stopPropagation(),e.id>720&&!f?(b("/plans...AFTER:
onClick:function(n){n.stopPropagation(),e.id>720&&false?(b("/plans... -
Save the Overridden File: Press
Ctrl+S(orCmd+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.
- Install Tampermonkey: If you haven't already, install the Tampermonkey extension for your browser.
- 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.
- 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.jsfile into the editor. - 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:
- Navigate to any movie, show, or episode on
mxplayer.in. - Press
F12to open the Developer Tools (this is required to activate your override). You can keep it docked and minimized. - 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
.jsfile 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.
