{"id":28703149,"url":"https://github.com/adguardteam/disableamp","last_synced_at":"2026-05-04T11:05:58.600Z","repository":{"id":42658733,"uuid":"203957910","full_name":"AdguardTeam/DisableAMP","owner":"AdguardTeam","description":"Disable AMP userscript","archived":false,"fork":false,"pushed_at":"2025-05-26T13:41:21.000Z","size":460,"stargazers_count":133,"open_issues_count":6,"forks_count":5,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-26T14:54:57.412Z","etag":null,"topics":["open-source","userscript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdguardTeam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-23T08:32:42.000Z","updated_at":"2025-05-25T03:30:47.000Z","dependencies_parsed_at":"2023-12-04T13:29:32.903Z","dependency_job_id":"928db093-bc89-4032-815f-ad608aac0a6d","html_url":"https://github.com/AdguardTeam/DisableAMP","commit_stats":null,"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/AdguardTeam/DisableAMP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdguardTeam%2FDisableAMP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdguardTeam%2FDisableAMP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdguardTeam%2FDisableAMP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdguardTeam%2FDisableAMP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdguardTeam","download_url":"https://codeload.github.com/AdguardTeam/DisableAMP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdguardTeam%2FDisableAMP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259820846,"owners_count":22916569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["open-source","userscript"],"created_at":"2025-06-14T13:07:09.748Z","updated_at":"2026-05-04T11:05:58.595Z","avatar_url":"https://github.com/AdguardTeam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Disable AMP by AdGuard\n\nDisable AMP by AdGuard is a userscript that opens supported AMP and Yandex\nTurbo pages as their original non-AMP pages. It is for people who browse with\nAdGuard for Android or a userscript manager and prefer canonical website pages\ninstead of AMP wrappers.\n\n## Table Of Contents\n\n- [What It Does](#what-it-does)\n- [Key Concepts](#key-concepts)\n- [Installation](#installation)\n    - [AdGuard For Android](#adguard-for-android)\n    - [Userscript Managers](#userscript-managers)\n- [Quick Start](#quick-start)\n- [Features](#features)\n- [Supported Page Types](#supported-page-types)\n- [Usage Notes](#usage-notes)\n- [Troubleshooting](#troubleshooting)\n- [Documentation](#documentation)\n\n## What It Does\n\nAMP pages often wrap publisher content in a faster but reduced version of the\noriginal page. Disable AMP detects supported AMP or Turbo pages and sends the\nbrowser to the canonical page published by the site owner.\n\nDepending on the page, the script can:\n\n- Rewrite AMP links before you click them.\n- Redirect an AMP page to its canonical URL after the page loads.\n- Redirect Yandex Turbo pages to their original URL.\n- Remove visible AMP indicators from links after replacing them.\n\n## Key Concepts\n\n- **Userscript**: A small script installed in AdGuard for Android or a browser\n  userscript manager. It runs only on URLs matched by its metadata.\n- **AMP page**: A page that loads AMP runtime scripts from\n  `cdn.ampproject.org` and usually points to a canonical page.\n- **Canonical page**: The original non-AMP URL declared by the publisher in the\n  page metadata.\n- **Yandex Turbo page**: A Yandex-hosted lightweight version of a page that can\n  point back to an original URL.\n- **Stable and beta channels**: Stable is recommended for normal use. Beta is\n  useful when testing upcoming fixes.\n\n## Installation\n\n### AdGuard For Android\n\nAdGuard for Android includes Disable AMP by AdGuard. It is pre-installed and\ndisabled by default.\n\nTo use it:\n\n1. Open AdGuard for Android.\n2. Open userscript settings.\n3. Enable Disable AMP by AdGuard.\n4. Open a supported AMP or Turbo page in your browser.\n\n### Userscript Managers\n\nInstall one of these URLs in Violentmonkey, Tampermonkey, Greasemonkey, or\nanother compatible userscript manager:\n\n- Stable:\n  https://userscripts.adtidy.org/release/disable-amp/1.0/disable-amp.user.js\n- Beta:\n  https://userscripts.adtidy.org/beta/disable-amp/1.0/disable-amp.user.js\n\nThe userscript metadata includes update URLs, so compatible managers can check\nfor updates automatically.\n\n## Quick Start\n\n1. Install or enable the userscript.\n2. Search on Google from a mobile browser.\n3. Open a result marked as AMP.\n4. The result should open as the original page instead of the AMP version.\n\nYou can also open a supported AMP URL directly. If the page exposes a valid\ncanonical URL, the script redirects to that URL.\n\n## Features\n\n- **Google Search AMP cleanup**: Removes AMP-specific attributes from Google\n  result links so the browser opens the original destination.\n- **Google News AMP cleanup**: Replaces encoded AMP destinations in Google News\n  links with canonical URLs when available.\n- **Google Images AMP cleanup**: Handles image-result AMP link variants and\n  hides the AMP marker after a link is rewritten.\n- **Generic AMP redirect**: Redirects supported AMP pages to their canonical\n  non-AMP URL.\n- **AMP CDN link replacement**: Rewrites AMP CDN links such as\n  `cdn.ampproject.org` or `amp.` host variants when the original URL can be\n  derived.\n- **Yandex Turbo redirect**: Redirects supported Yandex Turbo and\n  `turbopages.org` pages to their canonical or original URL.\n\n## Supported Page Types\n\nThe userscript runs on Google, Google News, Yandex, `turbopages.org`, and common\nAMP URL patterns. Examples include:\n\n- `https://www.google.*/*`\n- `https://news.google.*/*`\n- `https://yandex.*/*`\n- `https://*.turbopages.org/*`\n- `https://*/amp/*`\n- `https://*/*/amp/*`\n- `https://amp.*`\n- `https://*/*/amp`\n- `https://*/*.amp*`\n- `https://*/*-amp*`\n- `https://*/*_amp*`\n- `https://*/*=amp*`\n- `https://*/?amp*`\n- `https://*/*\u0026amp*`\n- `https://*/*\u0026amp=1*`\n- `https://*?amp=*`\n- `https://*/*?amp=1*`\n- `https://*/amp-*/*`\n- `https://*/ampNews/*`\n- `https://*/NewsViewAmp/*`\n- `https://*/*/articleViewAmp*`\n- `https://*/*/amp_articleshow/*`\n- `https://*/*/?noamp=*`\n\nSome matching sites are excluded to avoid redirect loops or site-specific\nbreakage. If a page does not redirect, it may be excluded or may not expose a\nusable canonical URL.\n\n## Usage Notes\n\n- The script changes only pages matched by its userscript metadata.\n- The script does not create its own replacement page. It redirects to the URL\n  declared by the publisher when that URL is available.\n- Non-AMP pages that match an AMP-like URL pattern should stay unchanged unless\n  they contain the AMP runtime marker and a valid canonical URL.\n- If the target website declares an incorrect canonical URL, the browser may be\n  redirected to that incorrect destination.\n- The beta channel can change sooner than the stable channel and may be less\n  predictable.\n\n## Troubleshooting\n\n- **The script is installed but nothing changes**: Check that the userscript is\n  enabled in AdGuard or your userscript manager.\n- **A specific page does not redirect**: Check whether the page has a canonical\n  URL and whether it is a supported AMP or Turbo URL shape.\n- **A site reloads repeatedly**: Disable the userscript for that site and report\n  the URL. The site may need to be excluded.\n- **Google result still opens an AMP page**: Refresh the search results page and\n  try again. Google can inject links dynamically, and the script rewrites them\n  after DOM updates.\n- **A beta install behaves unexpectedly**: Switch to the stable URL and retry.\n\nWhen reporting a problem, include the original URL, the URL you expected to\nopen, the browser or userscript host, and whether you use stable or beta.\n\n## Documentation\n\n- [Development](DEVELOPMENT.md)\n- [LLM agent rules](AGENTS.md)\n- [Deployment and configuration](DEPLOYMENT.md)\n- [Changelog](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadguardteam%2Fdisableamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadguardteam%2Fdisableamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadguardteam%2Fdisableamp/lists"}