{"id":13394428,"url":"https://github.com/einaregilsson/Redirector","last_synced_at":"2025-03-13T20:31:30.131Z","repository":{"id":1431702,"uuid":"1620438","full_name":"einaregilsson/Redirector","owner":"einaregilsson","description":"Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.","archived":false,"fork":false,"pushed_at":"2024-10-25T10:15:32.000Z","size":1225,"stargazers_count":1528,"open_issues_count":144,"forks_count":158,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-10-29T15:34:16.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://einaregilsson.com/redirector/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/einaregilsson.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2011-04-15T19:09:57.000Z","updated_at":"2024-10-29T05:14:50.000Z","dependencies_parsed_at":"2023-07-08T04:01:30.759Z","dependency_job_id":"c0c75f20-4b89-4e79-aa77-43bd78e33c69","html_url":"https://github.com/einaregilsson/Redirector","commit_stats":{"total_commits":256,"total_committers":22,"mean_commits":"11.636363636363637","dds":0.26953125,"last_synced_commit":"de0f47aa6c0078c5db72a586714d8c07f7f555b4"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einaregilsson%2FRedirector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einaregilsson%2FRedirector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einaregilsson%2FRedirector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einaregilsson%2FRedirector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/einaregilsson","download_url":"https://codeload.github.com/einaregilsson/Redirector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243465634,"owners_count":20295304,"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":[],"created_at":"2024-07-30T17:01:19.348Z","updated_at":"2025-03-13T20:31:30.108Z","avatar_url":"https://github.com/einaregilsson.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Alternative Web Front-ends","Redirection","others"],"sub_categories":["Other services"],"readme":"## Description\nWeb browser extension (Firefox, Vivaldi, Chrome, Opera, Edge) to redirect URLs based on regex or wildcard patterns.\n\n## Tribute\nIn loving memory of Einar Egilsson, who gave us Redirector and selflessly nurtured it for many years.  We miss you Einar, and will always remember your kindness and generosity.\n\n## Download Links\n* [Firefox](https://addons.mozilla.org/firefox/addon/redirector/)\n* [Google Chrome and Vivaldi](https://chrome.google.com/webstore/detail/redirector/ocgpenflpmgnfapjedencafcfakcekcd)\n\u003c!--\nOpera extension is no longer present (as of 2023/01/16)\n* [Opera](https://addons.opera.com/extensions/details/redirector-2/)\n--\u003e\n\n## Examples\n### De-mobilizer\n- Example URL: `https://en.m.wikipedia.org/`\n- Include pattern: `^(https?://)([a-z0-9-]*\\.)m(?:obile)?\\.(.*)`\n- Redirect to: `$1$2$3`\n- Pattern type: Regular Expression\n- Description: Always show the desktop version of websites\n\n### AMP redirect\n- Example URL: `https://www.google.com/amp/www.example.com/amp/document`\n- Include pattern: `^(?:https?://)www.(?:google|bing).com/amp/(?:s/)?(.*)`\n- Redirect to: `https://$1`\n- Pattern type: Regular Expression\n- Description: AMP is bad: \u003chttps://80x24.net/post/the-problem-with-amp/\u003e\n\n### Doubleclick escaper\n- Example URL: `https://ad.doubleclick.net/ddm/trackclk/N135005.2681608PRIVATENETWORK/B20244?https://www.example.com`\n- Include pattern: `^(?:https?://)ad.doubleclick.net/.*\\?(http?s://.*)`\n- Redirect to: `$1`\n- Pattern type: Regular Expression\n- Description: Remove doubleclick link tracking / fix problems with doubleclick host-based blocking\n\n### YouTube Shorts to YouTube\n- Example URL: `https://www.youtube.com/shorts/video-id`\n- Include pattern: `^(?:https?://)(?:www.)?youtube.com/shorts/([a-zA-Z0-9_-]+)(.*)`\n- Redirect to: `https://www.youtube.com/watch?v=$1$2`\n- Pattern type: Regular Expression\n- Description: Redirect YouTube Shorts to regular YouTube\n\n### Fun with !bangs\nWhat are bangs?: \u003chttps://duckduckgo.com/bangs\u003e\n\n#### Use DuckDuckGo.com !bangs on Google\n- Example URL: `https://www.google.com/search?\u0026ei=-FvkXcOVMo6RRwW5p5DgBg\u0026q=asdfasdf%21+sadfas\u0026oq=%21asdfasdf+sadfas\u0026gs_l=asdfsadfafsgaf`\n- Include pattern: `^(?:https?://)(?:www.)google\\.(?:com|au|de|co\\.uk)/search\\?(?:.*)?(?:oq|q)=([^\\\u0026]*\\+)?((?:%21|!)[^\\\u0026]*)`\n- Redirect to: `https://duckduckgo.com/?q=$1$2`\n- Pattern type: Regular Expression\n- Description: Redirect any Google query with a !bang to DDG\n\n### Custom DuckDuckGo.com !bangs\n\n#### DDG !example Base\n- Example URL: `https://duckduckgo.com/?q=!`__example__`\u0026get=other`\n- Include pattern: `^(?:https?://)(?:.*\\.)?duckduckgo.com/\\?q=(?:%21|!)`__example__`(?=[^\\+]|$)(?=\\W|$)`\n- Redirect to: `https://example.com/`\n- Pattern type: Regular Expression\n- Description: Redirect to the base site when !bang is the only search parameter\n\n#### DDG !example Search\n- Example URL: `https://duckduckgo.com/?q=searchterm+!`__example__`+searchterm2\u0026get=other`\n- Include pattern: `^(?:https?://)(?:.*\\.)?duckduckgo.com/\\?q=(.*\\+)?(?:(?:%21|!)`__example__`)(?:\\+([^\\\u0026\\?\\#]*))?(?:\\W|$)`\n- Redirect to: `https://example.com/?query=$1$2`\n- Pattern type: Regular Expression\n- Description: Redirect to custom site search\n\n#### DDG !ghh git-history\n- Example URL: `https://duckduckgo.com/?q=!ghh+https%3A%2F%2Fgithub.com%2Fbabel%2Fbabel%2Fblob%2Fmaster%2Fpackages%2Fbabel-core%2FREADME.md\u0026adfasfasd`\n- Include pattern: `^(?:https?://)duckduckgo.com/\\?q=(?:(?:%21|!)ghh\\+)(?:.*)(github|gitlab|bitbucket)(?:\\.org|\\.com)(.*?(?=\\\u0026))`\n- Redirect to: `https://$1.githistory.xyz$2`\n- Pattern type: Regular Expression\n- Description: Create new !ghh bang that redirects to \u003chttps://githistory.xyz\u003e\n- Advanced:\n    - Process matches: URL decode\n    \n### Fast DuckDuckGo.com !bangs\n\nGo directly to frequently used DuckDuckGo bangs to avoid intermediary network requests.\n\n- Example URL: `https://duckduckgo.com/?q=foo+bar+%21google+test+bar`\n- Include pattern: `^https://duckduckgo\\.com/\\?q=(.*)\\+(?:%21|!)google\\b\\+(.*?)(?:\u0026|$)`\n- Redirect to: `https://google.com/search?hl=en\u0026q=$1+$2`\n- Pattern type: Regular Expression\n- Description: DuckDuckGo → Google !bang shortcut (prefix AND suffix)\n- Pattern Description: Avoid extraneous + in URL with two separate patterns  \n###\n  \n- Example URL: `https://duckduckgo.com/?q=foo+bar+%21google`\n- Include pattern: `^https://duckduckgo\\.com/\\?q=(.*?)\\+?(?:%21|!)google\\b\\+?(.*?)(?:\u0026|$)`\n- Redirect to: `https://google.com/search?hl=en\u0026q=$1$2`\n- Pattern type: Regular Expression\n- Description: DuckDuckGo → Google !bang shortcut (prefix OR suffix)\n- Pattern Description: Avoid extraneous + in URL with two separate patterns\n\n## Dark Theme\nIf you are a Firefox user and use a dark theme, you can add these lines to your `userChrome.css` file to make Redirector's extension button more visible:\n\n```css\n/* Redirector button for dark Firefox themes */\ntoolbarbutton#toggle-button--redirectoreinaregilssoncom-redirector[image*=\"active\"] { filter: invert(1) brightness(6); }\ntoolbarbutton#toggle-button--redirectoreinaregilssoncom-redirector[image*=\"disabled\"] { filter: invert(1) brightness(2.5); }\n```\n\nIf you don't know what the `userChrome.css` file is, or how to edit it, please look it up on a Firefox forum instead of asking about it in this repository. Thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinaregilsson%2FRedirector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feinaregilsson%2FRedirector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinaregilsson%2FRedirector/lists"}