# Strange Problem

**URL:** <https://boards.straightdope.com/t/strange-problem/845439>\
**Category:** About This Message Board\
**Created:** [December 27, 2019, 4:23am UTC](https://boards.straightdope.com/t/strange-problem/845439 "2019-12-27T04:23:16Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Joey\_P](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@Joey\_P](https://boards.straightdope.com/u/Joey_P)\
**Post date:** [December 28, 2019, 3:28pm UTC](https://boards.straightdope.com/t/strange-problem/845439/10 "2019-12-28T15:28:12Z")

</div>

[Here’s that thread.](http://boards.straightdope.com/sdmb/showthread.php?t=697058)  
Here’s the post what I was talking about. I have no idea if code from 6+ years ago works on current browsers, but you can certainly try it and find out.

> [@Can we add a Google custom search?](https://boards.straightdope.com/t/can-we-add-a-google-custom-search/664014/4):
>
> Here’s what I did, I did a google search for site:boards.straightdope.com then saved that as s bookmark. Then I moved that bookmark to the toolbar. Now, all I have to do is click that button and it takes me to Google with "site:boards.straightdope.com already in the search bar and I just need to type in my search string.
> 
> To make it even better, the last time I relayed that story, another doper gave me code below which turns the button into a pop up box requesting my search string and then takes me to Google. Either way works. Just right click on the toolbar and select “New Bookmark” and then enter this for the Location:  
> javascript:void(location.href='[Google](https://www.google.com/?q=site:boards.straightdope.com#q=site:boards.straightdope.com%20'+prompt(%22Enter%20your%20search%20terms:%22)))

ETA: It works on the current version of Firefox (71). Keep in mind that the button does not spawn a new window or tab so if you have something typed, but not submitted, you’ll lose it.

---

_[View the full topic](https://boards.straightdope.com/t/strange-problem/845439)._
