• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

einaregilsson/Redirector: Browser extension (Firefox, Chrome, Opera, Edge) to re ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

einaregilsson/Redirector

开源软件地址:

https://github.com/einaregilsson/Redirector

开源编程语言:

JavaScript 52.1%

开源软件介绍:

Download links

Examples

De-mobilizer

  • Example URL: https://en.m.wikipedia.org/
  • Include pattern: ^(https?://)([a-z0-9-]*\.)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: ^(?:https?://)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/

doubleclick escaper

  • Example URL: https://ad.doubleclick.net/ddm/trackclk/N135005.2681608PRIVATENETWORK/B20244?https://www.example.com
  • Include pattern: ^(?:https?://)ad.doubleclick.net/.*\?(http?s://.*)
  • Redirect to: $1
  • Pattern type: Regular Expression
  • Description: remove doubleclick link tracking / fix problems with doubleclick host based blocking

Fun with !bangs

What are bangs?: https://duckduckgo.com/bang

use DuckDuckGo.com !bangs on Google

  • Example URL: https://www.google.com/search?&ei=-FvkXcOVMo6RRwW5p5DgBg&q=asdfasdf%21+sadfas&oq=%21asdfasdf+sadfas&gs_l=asdfsadfafsgaf
  • Include pattern: ^(?:https?://)(?:www.)google\.(?:com|au|de|co\.uk)/search\?(?:.*)?(?:oq|q)=([^\&]*\+)?((?:%21|!)[^\&]*)
  • Redirect to: https://duckduckgo.com/?q=$1$2
  • Pattern type: Regular Expression
  • Description: redirect any querry to google with a !bang to DDG

Custom DuckDuckGo.com !bangs

DDG !example Base

  • Example URL: https://duckduckgo.com/?q=!example&get=other
  • Include pattern: ^(?:https?://)(?:.*\.)?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: ^(?:https?://)(?:.*\.)?duckduckgo.com/\?q=(.*\+)?(?:(?:%21|!)example)(?:\+([^\&\?\#]*))?(?:\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: ^(?:https?://)duckduckgo.com/\?q=(?:(?:%21|!)ghh\+)(?:.*)(github|gitlab|bitbucket)(?:\.org|\.com)(.*?(?=\&))
  • 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:

/* Redirector button for dark Firefox themes */
toolbarbutton#toggle-button--redirectoreinaregilssoncom-redirector[image*="active"]{filter:invert(100%) brightness(600%);}
toolbarbutton#toggle-button--redirectoreinaregilssoncom-redirector[image*="disabled"]{filter:invert(100%) brightness(250%);}

If you don't know what the userChrome.css file is or how to edit it, please look it up on Firefox forums instead of asking about it on this repository.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap