Search Mint forum with Chrome

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Search Mint forum with Chrome

Postby joshN on Sat Sep 18, 2010 9:41 pm

Greetings, I've found a much better way to do what I described before. In Chrome, under preferences->basics, click the manage button (near search). then on the Search Engines window click add and enter the following values:

Name: Linux Mint
Keyword: lm
URL: http://www.google.com/search?q=site#sclient=psy&hl=en&q=%s+site:linuxmint.com

Click add again and close the extra windows. Now whenever you want to search the mint site just type lm + <tab> + your query into the address bar.

Ignore all that follows.

Greetings,

I saw this post: http://forums.linuxmint.com/viewtopic.php?f=42&t=25794#p150641 and thought hey maybe people would want the same thing, but for it work with Google Chrome. Well, anyways here is how you add a google search tool to Chrome (via bookmarklet).

1) Tell your browser you want a new bookmark.

2) Where it says address paste this in:
Code: Select all
javascript:document.getElementsByTagName("body")[0].appendChild(document.createElement("script")).innerHTML='<div id="cse" style="width: 100%;">Loading</div><script src="http://www.google.com/jsapi" type="text/javascript"><\/script><script type="text/javascript">google.load(\'search\', \'1\', {language : \'en\'});google.setOnLoadCallback(function() { var customSearchControl = new google.search.CustomSearchControl(\'004419114940588264531:ovfkusndcbw\'); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw(\'cse\'); }, true); <\/script> <link rel="stylesheet" href="http://www.google.com/cse/style/look/greensky.css" type="text/css" /> <style type="text/css"> .gsc-control-cse { font-family: Verdana, sans-serif; border-color: #009900; background-color: #99ff99; } input.gsc-input { border-color: #94CC7A; } input.gsc-search-button { border-color: #94CC7A; background-color: #AADA92; } .gsc-tabHeader.gsc-tabhInactive { border-color: #A9DA92; background-color: #FFFFFF; } .gsc-tabHeader.gsc-tabhActive { border-color: #A9DA92; background-color: #A9DA92; } .gsc-tabsArea { border-color: #A9DA92; } .gsc-webResult.gsc-result { border-color: #A9DA92; background-color: #FFFFFF; } .gsc-webResult.gsc-result:hover { border-color: #A9DA92; background-color: #FFFFFF; } .gs-webResult.gs-result a.gs-title:link, .gs-webResult.gs-result a.gs-title:link b { color: #0066CC; } .gs-webResult.gs-result a.gs-title:visited, .gs-webResult.gs-result a.gs-title:visited b { color: #0066CC; } .gs-webResult.gs-result a.gs-title:hover, .gs-webResult.gs-result a.gs-title:hover b { color: #0066CC; } .gs-webResult.gs-result a.gs-title:active, .gs-webResult.gs-result a.gs-title:active b { color: #0066CC; } .gsc-cursor-page { color: #0066CC; } a.gsc-trailing-more-results:link { color: #0066CC; } .gs-webResult.gs-result .gs-snippet { color: #454545; } .gs-webResult.gs-result .gs-visibleUrl { color: #815FA7; } .gs-webResult.gs-result .gs-visibleUrl-short { color: #815FA7; } .gsc-cursor-box { border-color: #A9DA92; } .gsc-results .gsc-cursor-page { border-color: #A9DA92; background-color: #FFFFFF; } .gsc-results .gsc-cursor-page.gsc-cursor-current-page { border-color: #A9DA92; background-color: #A9DA92; } .gs-promotion.gs-result { border-color: #94CC7A; background-color: #CBE8B4; } .gs-promotion.gs-result a.gs-title:link { color: #0066CC; } .gs-promotion.gs-result a.gs-title:visited { color: #0066CC; } .gs-promotion.gs-result a.gs-title:hover { color: #0066CC; } .gs-promotion.gs-result a.gs-title:active { color: #0066CC; } .gs-promotion.gs-result .gs-snippet { color: #454545; } .gs-promotion.gs-result .gs-visibleUrl, .gs-promotion.gs-result .gs-visibleUrl-short { color: #815FA7; } </style>';

3) Set the title appropriately.

Now when you click the bookmark a google search box will appear that only searches this forum.

Please let me know if I should post this in a different place/way.

This won't work in Firefox.
Why keep it simple when it can be complicated?
User avatar
joshN
Level 1
Level 1
 
Posts: 7
Joined: Tue Sep 14, 2010 10:04 pm

Linux Mint is funded by ads and donations.
 

Re: Search Mint forum with Chrome

Postby Oscar799 on Sun Mar 06, 2011 3:48 am

This works very well :D
This thread shows how to do the same thing in Firefox viewtopic.php?f=42&t=67713
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8943
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Search Mint forum with Chrome

Postby austin.texas on Sun Mar 23, 2014 10:53 am

The previous instruction for creating a "lm" shortcut works great.

Another alternative for Chrome is the "Search the Current Site" app for Google searches.
https://chrome.google.com/webstore/detail/search-the-current-site/jliolpcnkmolaaecncdfeofombdekjcp
Mint 17 v2 Cinnamon (64 bit), Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Microsoft-free environment since 1996

To help Linux Mint with a donation, please visit http://www.linuxmint.com/donors.php
User avatar
austin.texas
Level 11
Level 11
 
Posts: 3788
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 8 guests