搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Automatically "Find in Page" in New Tab from a link ?

more options

Hi there :)

Is it possible to make a link open a new tab with "Find in Page" automatically enabled so that people do not have to ctrl-F or click on "edit" to have the search open (as many people do not even know that option is there !!!) ?

Many thanks

Zoe

Hi there :) Is it possible to make a link open a new tab with "Find in Page" automatically enabled so that people do not have to ctrl-F or click on "edit" to have the search open (as many people do not even know that option is there !!!) ? Many thanks Zoe

所有回覆 (7)

more options

Hi. In the browser menu Help > Share ideas and feedback.

https://support.mozilla.org/en-US/kb/file-bug-report-or-feature-request-mozilla

more options

Terry said

Hi. In the browser menu Help > Share ideas and feedback. https://support.mozilla.org/en-US/kb/file-bug-report-or-feature-request-mozilla

Hi Terry

Do I take it that it's not currently possible then ? This was a question - Not a suggestion !!

Thanks

Zoe

more options

You may be able to achieve that by installing an autoconfig file. I have added a blank space to the url below and you will need to remove that.

https://www.userchrome. org/what-is-userchrome-js.html

more options

Terry said

You may be able to achieve that by installing an autoconfig file. I have added a blank space to the url below and you will need to remove that. https://www.userchrome. org/what-is-userchrome-js.html

That's what I mean. People would have to do/install something at their end as opposed to something I can put in the link e.g. #labels

more options

I know of no simple way of doing what you want. Nor do you. Nor, it seems, does anyone else.

由 Terry 於 修改

more options

Making the Find bar visible via userChrome.css won't work because the Find bar needs to be initialized via JavaScript and you get a not working Find bar.

more options

Hi, is this for your website?

My thought was that a script in the page could spot the hash and simulate the user pressing Ctrl+F (or on Mac, Command+F), but because it is an untrusted event, that doesn't work in Firefox. The answer in the following StackOverflow thread is that the site needs to implement its own Find feature:

https://stackoverflow.com/questions/58300026/ctrlf-keyboardevent-not-opening-find


More generally:

You may have noticed people circulating links with enormous text hashes. Chrome uses these to find and highlight text in the page. Firefox users have expressed some interest: I found three "Idea" postings on Mozilla Connect along those lines with a combined total of 41 votes:

Currently, Firefox users need an add-on (with permission to all websites) to load these links: https://addons.mozilla.org/firefox/addon/link-to-text-fragment/

Mozilla is still sorting out how to support these links without creating privacy leaks or enabling threat scenarios.

Anyway, you can add your voice by voting for one or more of the Ideas on Mozilla Connect and adding any additional use case scenarios that Mozilla should consider.