Add margins to wide pages.

Latest Version

Version
1.1
Update
October 10, 2024
Size
22.45KiB
Developer
Category
Users
965
Rating
4.82353 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
Scripting
Storage
See more

Narrower Extension

Narrower is a simple extension for dealing with annoyingly wide websites.

Usage:

To add margins to a wide page, click on the extension icon and drag the slider.
The extension will continue narrowing the current page as long as you stay on the same website.
To return the page to its previous state, drag the margin slider to 0% and refresh the page.

How it works:

When you drag the margin slider, Narrower changes the padding value of `document.documentElement`. It then leaves the selected margin in the website's localStorage, so it can be recalled the next time you activate the extension on the site.

Known issues:

Changing the padding of the document element doesn't work on 100% of the pages. If a page doesn't become narrower as a result of using the extension, you can always resort to manually changing the browser window size.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Narrower", "description": "Add margins to wide pages.", "version": "1.1", "author": "Andrey Leshenko", "icons": { "16": "images/icon16.png", "32": "images/icon32.png", "48": "images/icon48.png", "128": "images/icon128.png" }, "action": { "default_icon": { "16": "images/icon16.png", "24": "images/icon24.png", "32": "images/icon32.png", "19": "images/popup_icon19.png", "38": "images/popup_icon38.png" }, "default_popup": "popup.html" }, "background": { "service_worker": "service_worker.js", "type": "module" }, "permissions": [ "activeTab", "scripting", "storage" ]}
Read more

Similar Extensions

User reviews

icon

Jessica Salmonson (darkocean) (ID: 0000006951e60248) Voted 5 ★ - Updated 03/17/2023 Oh thank you, so many pages are stretched the hell out making articles hell to read, this saves so much eye strain. <3 I say Combine this one with darken text, zoon text only and your set to read :D Everyone has a wise monitor nowadays (except on mobile) so why are they still allowing the code to span the width of the screen? Quit it! A simple css edit is all it takes but noooo... Update: Works great as of 2023!

icon

Дмитрий Кулаков (ID: 000000473284262e) Voted 4 ★ - Updated 01/01/2023 Please add a feature to remember plugin settings for website!

icon

Lars Remsen (ID: 0000009e37995981) Voted 4 ★ - Updated 10/20/2022 Another vote for some ability to save the narrower setting per website! For frequently viewed and refreshed pages, it is really annoying to have to continually reenable.

icon

Russell (ID: 00000060443489fc) Voted 5 ★ - Updated 06/06/2022 Great but lacking the critical feature of automatically enabling the extension on specific websites.

icon

Michele Piecucci (ID: 0000000d94031104) Voted 5 ★ - Updated 01/10/2022 Excellent extension. I convert ebooks to html and read them in the browser. This extension makes it easy to adjust the margins. Simple. 5 stars.