https://github.com/zebbern/medium-unlock-button
Adds a small UNLOCK button in the bottom-right corner on Medium.com pages to take u to full version without paying.
https://github.com/zebbern/medium-unlock-button
Last synced: 3 months ago
JSON representation
Adds a small UNLOCK button in the bottom-right corner on Medium.com pages to take u to full version without paying.
- Host: GitHub
- URL: https://github.com/zebbern/medium-unlock-button
- Owner: zebbern
- License: mit
- Created: 2025-01-06T08:13:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-08T18:16:38.000Z (over 1 year ago)
- Last Synced: 2025-03-08T16:35:12.386Z (over 1 year ago)
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
1. **Install [Tampermonkey](https://tampermonkey.net/).**
Works with Chrome, Firefox, and more.
2. Go to extensions and enable developer mode or else it wont work

---
3. **Create a New Script** in Tampermonkey.
- Copy the script below.
- Save and enable.
```javascript
// ==UserScript==
// @name Medium UNLOCK Button (COM Only)
// @namespace https://tampermonkey.net/
// @version 1.0
// @description Adds a "UNLOCK" button on Medium github.com/zebbern for more
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const host = window.location.hostname.toLowerCase();
// Show button ONLY if:
// 1) The domain includes "medium"
// 2) The domain ends with ".com"
if (!host.includes('medium') || !host.endsWith('.com')) {
return; // Do nothing
}
// Create UNLOCK button
const unlockBtn = document.createElement('button');
unlockBtn.textContent = 'UNLOCK';
// Basic styling
unlockBtn.style.position = 'fixed';
unlockBtn.style.bottom = '20px';
unlockBtn.style.right = '20px';
unlockBtn.style.zIndex = '9999';
unlockBtn.style.padding = '12px 18px';
unlockBtn.style.fontSize = '14px';
unlockBtn.style.fontFamily = 'sans-serif';
unlockBtn.style.backgroundColor = '#0077cc';
unlockBtn.style.color = '#ffffff';
unlockBtn.style.border = 'none';
unlockBtn.style.borderRadius = '4px';
unlockBtn.style.cursor = 'pointer';
unlockBtn.style.boxShadow = '0 3px 8px rgba(0, 0, 0, 0.2)';
unlockBtn.style.opacity = '0.9';
unlockBtn.style.transition = 'all 0.2s ease';
// Hover effect
unlockBtn.addEventListener('mouseenter', () => {
unlockBtn.style.opacity = '1';
unlockBtn.style.transform = 'translateY(-2px)';
unlockBtn.style.boxShadow = '0 6px 12px rgba(0, 0, 0, 0.2)';
});
unlockBtn.addEventListener('mouseleave', () => {
unlockBtn.style.opacity = '0.9';
unlockBtn.style.transform = 'translateY(0)';
unlockBtn.style.boxShadow = '0 3px 8px rgba(0, 0, 0, 0.2)';
});
// On click, redirect to Freedium
unlockBtn.addEventListener('click', () => {
const withoutProtocol = window.location.href.replace(/^https?:\/\//, '');
window.location.href = 'https://freedium.cfd/' + withoutProtocol;
});
// Add button to the page
document.body.appendChild(unlockBtn);
})();
```
## Usage
- **Open any Medium page** (e.g. a member-only article).
- Click **UNLOCK** in the bottom-right corner.
- Enjoy your **Freedium** version!
---
### Made with ❤️ by [zebbern](https://github.com/zebbern)
### sh to freedium.cfd for providing the full pages