diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2019-10-28 09:22:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-28 09:22:02 +0000 |
commit | 6cf54d1e00b2a5976b4eb5a0a73b31ae0d0a9eca (patch) | |
tree | 91cae05939a8418245595bdc6f3b3cb1b091d820 /README.md | |
parent | e0b0cdc66fb3849bf3851e1fdc37ce55d18494f6 (diff) | |
parent | 285178f68e3b9182ca807fd16465f84b269db34a (diff) |
Merge pull request #159 from apfelchips/master
Provide some examples in Readme.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -3,6 +3,49 @@ * [Google Chrome and Vivaldi](https://chrome.google.com/webstore/detail/redirector/ocgpenflpmgnfapjedencafcfakcekcd) * [Opera](https://addons.opera.com/extensions/details/redirector-2/) + +## Examples +### De-mobilizer +- Example URL: `https://en.m.wikipedia.org/` +- Include pattern: `^(http?s://)(.*\.)m(?:obile)?\.(.*)` +- Redirect to: `$1$2$3` +- Pattern type: Regular Expression +- Description: always show the desktop site of a webpage + +### AMP redirect +- Example URL: `https://www.google.com/amp/www.example.com/amp/document` +- Include pattern: `^(?:http?s://)www.(?:google|bing).com/amp/(.*)` +- Redirect to: `https://$1` +- Pattern type: Regular Expression +- Description: AMP is bad: <https://80x24.net/post/the-problem-with-amp/> + +### old reddit +- Example URL: `https://www.reddit.com/u/test` +- Include pattern: `^(?:http?s://)(?:www.)reddit.com(.*)` +- Redirect to: `https://old.reddit.com$1` +- Pattern type: Regular Expression + +### doubleclick escaper +- Example URL: `https://ad.doubleclick.net/ddm/trackclk/N135005.2681608PRIVATENETWORK/B20244?https://www.example.com` +- Include pattern: `^(?:http?s://)ad.doubleclick.net/.*\?(http?s://.*)` +- Redirect to: `$1` +- Pattern type: Regular Expression +- Description: remove doubleclick link tracking / fix problems with doubleclick host based blocking + +### Custom DuckDuckGo.com !bangs +What are bangs?: <https://duckduckgo.com/bang> +#### DDG !example Base +- Example URL: `https://duckduckgo.com/?q=!`__example__`&get=other` +- Include pattern: `^(?:http?s://)duckduckgo.com/\?q=([^\+])?(?:%21|!)`__example__`([^\+]|$)` +- Redirect to: `https://example.com/` +- Description: redirect to the base site when bang is the only search parameter + +#### DDG !example Search +- Example URL: `https://duckduckgo.com/?q=searchterm+!`__example__`+searchterm2&get=other` +- Include pattern: `^(?:http?s://)duckduckgo.com/\?q=(.*\+)?(?:(?:%21|!)`__example__`\+?)(.*?(?=\&))` +- Redirect to: `https://example.com/?query=$1$2` +- Description: redirect to custom site search + ## Dark theme If you are a Firefox user and use a dark theme, you can edit your userChrome.css file and add these lines to it for the extension button to more visible: |