Mozilla Firefox allows you to trigger bookmarks with a custom keyword in the address bar. With this feature and a custom bookmarklet, you can quickly search for a site using Google, Bing, or DuckDuckGo. Here’s how.
The power of bookmarks
Bookmarks are browser bookmarks containing tiny snippets of JavaScript code that enable more powerful functionality than a standard bookmark. In our case, we’ll use a JavaScript bookmarklet in Firefox to search the site using the address of the site you’re currently browsing. For this task, we’ll need JavaScript to dynamically grab the current site address and insert it into the search string. If this sounds complex, don’t be overwhelmed. It really is as easy as copy and paste.
How to add a custom site search bookmark to Firefox
First, open a Firefox window and bookmark any site by pressing Ctrl + D (on Windows and Linux) or Command + D (on Mac). Give the bookmark a distinctive name, such as «Site Search Shortcut,» so that it can be easily found in your bookmark library. Then click on «Done». Next, open the Bookmarks sidebar by pressing Ctrl + B (on Windows and Linux) or Command + B (on a Mac). Find the favorite you just created, then right click on it in the sidebar list and select ‘Properties’.
Advice: You can also edit bookmarks in the Bookmark Manager window by selecting Library> Bookmarks> Manage Bookmarks or by pressing Ctrl + Shift + O (on Windows or Linux) or Shift + Command + O (on Mac).
A Properties window for the bookmark appears. In the «Location:» field, paste one of the following options. To search for the current site using Google, paste this:
javascript:location='http://www.google.com/search?num=100&q=site:'%20+%20escape(location.hostname)%20+%20'%20%S'%20;%20void%200
To find the current site using Bing, paste this:
javascript:location='https://www.bing.com/search?q=site%3A'%20+%20escape(location.hostname)%20+%20'%20%S'%20;%20void%200
To search for the current site using DuckDuckGo, paste this:
javascript:location='https://www.duckduckgo.com/?q=%S+site%3A'%20+%20escape(location.hostname)%20+%20'%20'%20;%20void%200
Then click on the «Keyword» field and type in «cs» (for «current site») or other mnemonic shortcut keyword that you want to enter to trigger the search on the site. When you are done, click «Save» and the bookmark properties window will close. Then go to any website you want to search (say How-To Geek, for example). When you’re there, click on the address bar in any Firefox window and type «cs atari» and hit enter.
Instantly, you will see the search results for «atari» among the pages of the howtogeek.com site using the search engine you chose in the bookmark above.
You can apply this search shortcut to any site. While browsing, just type «cs [search query]» In the address bar (where [search query] is what you want to search for), hit enter and you will get instant results. Very practical and powerful. Use it for Amazon, Wikipedia, and any other site on the net. Good navigation! ★ ★ ★ ★ ★
Navigation section Firefox is one of the famous browsers nowadays. Further, it has many characteristic features available. In addition, you will experience the distinguishing features of this browser. Nowadays, there is a facility available for instant site searching. This feature is so useful for users. So, you should go towards it. Many users don’ have an idea about ‘How to Do an Instant Site Search with a Keyword in Firefox?’. No need to worry at all. We are ready here for our help. Thus, we are making you familiar with this beneficial topic. This data will surely bring the best results for you. You should try this out. We have also covered the article ‘How to Prevent Users from Changing Camera, Location, Microphone Preferences in Firefox‘. So, let’s move to this interesting topic ‘How to Do an Instant Site Search with a Keyword in Firefox?’. Contents
- How to Do an Instant Site Search with a Keyword in Firefox?
- 1 ) Open the Firefox Browser
- 2 ) Bookmark Naming Phase
- 3 ) Opening the Bookmarks
- 4 ) Choose the ‘Properties’ Option
- 5 ) Coding Phase
- 6 ) Adding Location & Keywords
- 7 ) Instant Search Window
In the Firefox browser, we are going to make use of the ‘Bookmarklets’. Thus, Bookmarklets are the bookmarks in a browser containing JavaScript code. Even though it is related to coding, it is not a tough task to perform. You can easily do it. We are delivering here a tutorial on ‘How to Do an Instant Site Search with a Keyword in Firefox?’. This fantastic information will please you with its outcomes. So, you should apply it to your system. On the other end, get yourself ready for this operation. Let’s go ahead with this amazing journey. Process Used For This Purpose There is a specific process available for this purpose. So, it is necessary to follow the steps given below.
1 ) Open the Firefox Browser
The very first thing you should do is to open the Firefox browser. Then, visit any site you wish. Let’s suppose, you visit the WHO official site. Further, press the ‘Ctrl+D’ keys together to make it a bookmark for your browser. A pop-up window will appear there for editing purposes.
2 ) Bookmark Naming Phase
After that, you should name this new bookmark differently. So, suppose you put the name as ‘Site Search Shortcut’. It will help you to find it easily from the library. When you complete the naming, click on the ‘Done’ option on the downward side of the window.
3 ) Opening the Bookmarks
Now, press the ‘Ctrl+B’ keys together to open the browsers. Thus, it will lead to the available bookmarks with a search window.
4 ) Choose the ‘Properties’ Option
Here, choose the ‘Site Search Shortcut’ you have already created. Then, right-click on that & select the ‘Properties’ option for further operations.
5 ) Coding Phase
There are various Java codes available for different tools. so, choose it according to your need. For Google:
javascript:location='http://www.google.com/search?num=100&q=site:'%20+%20escape(location.hostname)%20+%20'%20%S'%20;%20void%200
For Bing:
javascript:location='https://www.bing.com/search?q=site%3A'%20+%20escape(location.hostname)%20+%20'%20%S'%20;%20void%200
6 ) Adding Location & Keywords
Now, at the ‘Location’ Window, put the code mentioned above for Google. So, just copy & paste it into the proper field. Then, in the ‘Keyword’ segment, add the shortcut keyword. Let’s say, you put the ‘cs’ word. Then, click on the ‘Save’ option on the downward side of the window.
7 ) Instant Search Window
Here, visit the site you wish to. Let’s visit the WHO site again. Then, in the next tab, search for the ‘cs COVID-19 Dashboard’. So, it will display the result on this current site instantly. By doing so, your operation gets completed. In this way, following the above-mentioned steps, you can easily fulfill this search operation.
The Power of Bookmarklets
Bookmarklets are browser bookmarks containing tiny snippets of JavaScript code that allow for more powerful features than a standard bookmark. In our case, we’ll be using a JavaScript bookmarklet in Firefox to do a site search using the address of the site you’re currently browsing. For this task, we’ll need JavaScript to grab the current site address dynamically and insert it into the search string. If that sounds complex, don’t get overwhelmed. It’s really as easy as cut and paste. RELATED: Beginner Geek: How to Use Bookmarklets on Any Device
How to Add a Custom Site Search Bookmarklet to Firefox
First, open a Firefox window and bookmark any site by pressing Ctrl+D (on Windows and Linux) or Command+D (on Mac). Name the bookmark something distinctive, like “Site Search Shortcut,” so that you can easily find it in your bookmarks library. Then click “Done.” Next, open the Bookmarks sidebar by pressing Ctrl+B (on Windows and Linux) or Command+B (on a Mac). Locate the bookmark that you just created and then right-click it in the sidebar list and select “Properties.”
Tip: You can also edit bookmarks in the Bookmarks Manager window by selecting Library > Bookmarks > Manage Bookmarks or by pressing Ctrl+Shift+O (on Windows or Linux) or Shift+Command+O (on Mac).
A Properties window for the bookmark will appear. In the “Location:” field, paste one of the following options. To search the current site using Google, paste this:
javascript:location='http://www.google.com/search?num=100&q=site:'%20+%20escape(location.hostname)%20+%20'%20%S'%20;%20void%200
To search the current site using Bing, paste this:
javascript:location='https://www.bing.com/search?q=site%3A'%20+%20escape(location.hostname)%20+%20'%20%S'%20;%20void%200
To search the current site using DuckDuckGo, paste this:
javascript:location='https://www.duckduckgo.com/?q=%S+site%3A'%20+%20escape(location.hostname)%20+%20'%20'%20;%20void%200
After that, click the “Keyword” field and type “cs” (for “current site”) or another mnemonic shortcut keyword you’d like to type to trigger the site search. When you’re done, click “Save,” and the bookmark properties window will close. Next, navigate to any website that you’d like to search (Let’s say How-To Geek, for example.). When you’re there, click the address bar in any Firefox window and type “cs atari” and hit Enter.
Instantly, you’ll see search results for “atari” among pages on the howtogeek.com website using the search engine you chose in the bookmark above.
You can apply this search shortcut to any site. When browsing, just type “cs [search query]” into the address bar (where [search query] is what you want to search for), hit Enter, and you’ll have instant results. Very handy and powerful. Use it for Amazon, Wikipedia, and any other site on the net. Happy browsing! RELATED: What Is DuckDuckGo? Meet the Google Alternative for Privacy READ NEXT
- › How to Add the Copyright Symbol to a Document on Windows and Mac
- › How to Sync Color Settings Across Adobe Apps
- › How to Automatically Switch Apple Watch Faces
- › How to Record Audio on an Android Phone
- › How to Unblock Facebook
- › How to Use Your Car as an Emergency Electricity Source During a Blackout
How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read more than 1 billion times. Want to know more?
- How to choose snacks for a sleepover
- How to meet a guy in college
- How to make hazelnut chocolate bark
- How to say good morning, good night, and good day in hebrew
- How to date in your thirties