寻找一种自动替换在网络浏览器地址栏中输入的快捷方式的方法
我访问了很多 subreddits,并且正在寻找一种能够仅输入 r/subreddit 而不是 www.reddit.com/r/subreddit 的方法,因此它必须识别 r/ 模式并重定向它。
我主要使用 Firefox,但也使用 chrome。 我希望能够在我的主机文件中设置一些东西或类似的东西,但不确定到底要做什么。
I visit a lot of subreddits and was looking for a way of being able to type just r/subreddit instead off www.reddit.com/r/subreddit, so it has to recognize the r/ pattern and redirect it.
I use mostly firefox but also chrome.
I was hoping to be able to set up something in my hosts file or something similar, but was unsure what exactly to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Google Chrome 对此提供了出色的解决方案 - Omnibox API
您可以绑定自己的关键字(例如“r”),创建选项列表,然后重定向到您想要的任何网址。
Google Chrome has excellent solution for this - Omnibox API
You can bind your own keyword (e.g. "r"), make options list and then redirect to any url you want.