寻找一种自动替换在网络浏览器地址栏中输入的快捷方式的方法

发布于 2024-12-26 03:22:02 字数 174 浏览 4 评论 0原文

我访问了很多 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

断肠人 2025-01-02 03:22:02

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文