diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2019-11-04 20:59:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 20:59:10 +0000 |
commit | eb7fa59d597e827f08c488d89d10b1d94f562afb (patch) | |
tree | fec84d1f2cb7aa5c8e92c919309e92a80ae1adc0 | |
parent | 6cf54d1e00b2a5976b4eb5a0a73b31ae0d0a9eca (diff) | |
parent | 31143c42eee5c04f4e61276ff57eb0455212c7bd (diff) |
Merge pull request #162 from apfelchips/master
README.md: fixed !bang RegEx, added !ghh example
-rw-r--r-- | README.md | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -3,7 +3,6 @@ * [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/` @@ -36,16 +35,27 @@ 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__`([^\+]|$)` +- Include pattern: `^(?:http?s://)duckduckgo.com/\?q=(?:%21|!)`__example__`(?=\&|$)(?=\W|$)` - Redirect to: `https://example.com/` +- Pattern type: Regular Expression - 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__`\+?)(.*?(?=\&))` +- Include pattern: `^(?:http?s://)duckduckgo.com/\?q=(.*\+)?(?:(?:%21|!)`__example__`)(?:\W|$)((\w|\+)*)` - Redirect to: `https://example.com/?query=$1$2` +- Pattern type: Regular Expression - Description: redirect to custom site search +##### !ghh git-history +- Example URL: `https://duckduckgo.com/?q=!ghh+https%3A%2F%2Fgithub.com%2Fbabel%2Fbabel%2Fblob%2Fmaster%2Fpackages%2Fbabel-core%2FREADME.md&adfasfasd` +- Include pattern: `^(?:http?s://)ad.doubleclick.net/.*\?(http?s://.*)` +- Redirect to: `https://$1.githistory.xyz$2` +- Pattern type: Regular Expression +- Description: <https://githistory.xyz> +- __Advanced:__ + - Process matches: URL decode + ## 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: |