Add-on to exclude domains from right-click?

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15858
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Add-on to exclude domains from right-click?

Post by ChrisGreaves »

I use Firefox 3.6.13 to search for solutions to problems, typically "Access the value you entered doesn't meet the validation rules" w/o quotes. (Probably coming soon to a forum near you!).
All too often some links divert me to a pay-before-you-enter site with a pop-up asking for a subscription before the white handkerchief is whisked away. Some sites seem to be populated by "I need this answer for my homework due tomorrow HELP" participants.

I'd love a button that would let me harvest the root url of such sites and add them to a list of "Don't let me go there".

I suspect that it's asking too much to have them not appear in the list of Google hits, but something that inhibits the opening of a new tab on right-click would, at least, save me the time of staring at those pages ever again.

In typing this it sounds as if I am asking for a parental control feature. Probably I am.
But I'm also looking for ease-of-use - I look at a page, click a button, and I'll never see that web site again (as a result of r/c Open in New Tab).

Does this strike a chord with anyone else here?

In this thread :grin: I don't want to get into the discussion of whether we should pay for solutions; fact is that today we have a choice, and while I do have a choice I'd like to exercise it semi-automatically.
I’ve been tidying the junk out of my shed for five years, and now can hardly get into the shed

User avatar
Hey Jude
5StarLounger
Posts: 1015
Joined: 24 Jan 2010, 15:45
Location: Ohio, U.S.A.

Re: Add-on to exclude domains from right-click?

Post by Hey Jude »

When I Googled your "" I found this in the results, and found someone else with similarity of thought.
http://codeoptimism.net/?page=2 He talks about rewriting urls if you stick with the blog long enough :evilgrin:

Love to see "Permanently Exclude Domain"
♫...Take a sad song and make it better . . .♫ Image

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15858
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Add-on to exclude domains from right-click?

Post by ChrisGreaves »

Thanks HeyJude.
I tried this and (a) couldn't get it quickly to work and (b) noted that it is not a permanent solution.
I might go back and look at Parental Control sites.

If you use the advanced search page:
http://www.google.com/advanced_search" onclick="window.open(this.href);return false;
you will see there is an option "search within site or domain". Using that will give you, for example
windows vista site:microsoft.com
you can add a minus sign to exclude that site:
windows vista -site:microsoft.com
That doesn't of course exclude the site permanently, and you have to type it each time, but it may help.
I’ve been tidying the junk out of my shed for five years, and now can hardly get into the shed

User avatar
HansV
Administrator
Posts: 78977
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Add-on to exclude domains from right-click?

Post by HansV »

I'd :love: to be able to exclude specific domains permanently from search results. I occasionally exclude one by using advanced search or by adding

-site:bigresource.com

or similar to the search string but that's tedious.
Best wishes,
Hans

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15858
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Add-on to exclude domains from right-click?

Post by ChrisGreaves »

HansV wrote:I'd :love: to be able to exclude specific domains permanently from search results.
"And so say all of us, and so say all of us ..." :yep:

After following HJ's link I'm even more puzzled that no-one has come up with a solution.

The more I think about it the more it seems to me such an obvious feature.

One might, as an example only, want to exclude sites from Holland (~*.nl). Or restrict to solutions only from Holland (*.nl)
Or Canada.
Or commercial sites (+*.com, ~*.com etc)

Or request answers only from commercial sites in Canada (*.com+*.ca if I got that right).

There's a month's supply of purple cabbage rolls for the first one to come up with an answer.
I’ve been tidying the junk out of my shed for five years, and now can hardly get into the shed

User avatar
Hey Jude
5StarLounger
Posts: 1015
Joined: 24 Jan 2010, 15:45
Location: Ohio, U.S.A.

Re: Add-on to exclude domains from right-click?

Post by Hey Jude »

"Ben" also wants an answer; "Again and again web pages from some annoying domains appear on the result list (top ranked).
How can I permanently exclude these domains from beeing listed in the result lists?


Ben

https://www.google.com/support/forum/p/ ... 19b0&hl=en

Although at the top it says there is outdated content, he suggests creating a filter and bookmarking it.....
♫...Take a sad song and make it better . . .♫ Image

User avatar
Hey Jude
5StarLounger
Posts: 1015
Joined: 24 Jan 2010, 15:45
Location: Ohio, U.S.A.

Re: Add-on to exclude domains from right-click?

Post by Hey Jude »

Here is how someone modified the search engine in Opera--I don't use Opera but am going to try in FF to fool with it.

"A workaround that I have done with both firefox and opera browsers is to modify the search query. In opera, you would go to Tools>Preferences>Search tab, and modify your google hotkey search (mine is g) from this...."

https://www.google.com/support/forum/p/ ... 667b&hl=en
♫...Take a sad song and make it better . . .♫ Image

User avatar
HansV
Administrator
Posts: 78977
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Add-on to exclude domains from right-click?

Post by HansV »

It's not so difficult to modify the search string to exclude one, two or perhaps three domains, but after that it becomes tedious. I have a whole slew of sites I'd like to exclude.
The page linked to by Hey Jude in the previous reply refers to a Firefox add-on that promises to let you build a list of excluded sides, but the URL isn't valid...
Best wishes,
Hans

User avatar
Argus
GoldLounger
Posts: 3081
Joined: 24 Jan 2010, 19:07

Re: Add-on to exclude domains from right-click?

Post by Argus »

ChrisGreaves wrote:One might, as an example only, want to exclude sites from Holland (~*.nl). Or restrict to solutions only from Holland (*.nl)
Or Canada.
Or commercial sites (+*.com, ~*.com etc)

Or request answers only from commercial sites in Canada (*.com+*.ca if I got that right).
I do that all the time; that is, I very often use the site operator (among other), such as "site:.uk" to search within the uk top-level domain; or perhaps "-site:.uk" to exclude it; or within sites. (I guess you have a mixed use of .ca and .com; so it's a bit complicated in that case; set it to ".com" and pick the region you want, I guess.)

But as mentioned in your previous post, you have to type it each time, as long as you don't save a search result, or set up a bookmark or similar. When I get quite frustrated, I can have just a few keywords and twice, or three times, as many exclusions using the minus sign. :grin: But after a while you find that you can pick even better keywords (but that doesn't always exclude the, ehm, not so interesting sites).

I don't use it, and I don't know if it could be of any help, but the Google toolbar can save the search history.
Byelingual    When you speak two languages but start losing vocabulary in both of them.

User avatar
Hey Jude
5StarLounger
Posts: 1015
Joined: 24 Jan 2010, 15:45
Location: Ohio, U.S.A.

Re: Add-on to exclude domains from right-click?

Post by Hey Jude »

Perhaps you geniuses in here need to create your own custom search engine http://www.google.com/cse/

Has anyone tried this? http://www.google.com/cse/manage/create Notice that if you want to opt out of ads then you have to pay a $100 fee/yr, otherwise the "free" version posts ads. I wondered if you could write your own URL codes like Hans and Chris talked about and set them to not include those sites you don't want; which leads to the ? do you know all the sites you would like excluded?
♫...Take a sad song and make it better . . .♫ Image

User avatar
HansV
Administrator
Posts: 78977
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Add-on to exclude domains from right-click?

Post by HansV »

It would need to be easily configurable. Often when I do a Google search, I follow a link and think "oh :censored:, not that useless site again!". It would be ideal if you could go back to the search results and click a thumbs down icon or something like that, similar (but opposite in effect) to the star icon that you see if you're logged in to your Google account:
x456.jpg
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
PaulB
SilverLounger
Posts: 1610
Joined: 26 Jan 2010, 20:28
Location: Ottawa ON

Re: Add-on to exclude domains from right-click?

Post by PaulB »

You could add the sites you don't want to see to your HOSTS file. They would still show up in searches, but you would never be able to link to them until and unless you removed them from the HOSTS file. I have a large list of advertising and malware sites that I download from here. You can add your own unwanted sites as needed. The added benefit is that it eliminates a lot of ads, too.
Regards,
Paul

The pessimist complains about the wind. The optimist expects it to change. The realist adjusts his sails.

User avatar
HansV
Administrator
Posts: 78977
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Add-on to exclude domains from right-click?

Post by HansV »

I know about the HOSTS file, but I don't want numerous hits from unhelpful sites cluttering my search results...
Best wishes,
Hans

User avatar
PaulB
SilverLounger
Posts: 1610
Joined: 26 Jan 2010, 20:28
Location: Ottawa ON

Re: Add-on to exclude domains from right-click?

Post by PaulB »

Then we better talk to Google!
Regards,
Paul

The pessimist complains about the wind. The optimist expects it to change. The realist adjusts his sails.

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15858
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Add-on to exclude domains from right-click?

Post by ChrisGreaves »

ChrisGreaves wrote:I'd love a button that would let me harvest the root url of such sites and add them to a list of "Don't let me go there".
(after reading this far in the thread)
I'd love an add-in that would automatically add a string to each search-term.
In the examples give here, I suspect it would be something like (air code) ~ "expert-exchange" (/air code).

Days when I was knee-deep in VBA, I'd like to prepend or append "VBA" to each and every query.
I’ve been tidying the junk out of my shed for five years, and now can hardly get into the shed

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15858
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Add-on to exclude domains from right-click?

Post by ChrisGreaves »

HansV wrote:...search results and click a thumbs down icon
Exactly!
I’ve been tidying the junk out of my shed for five years, and now can hardly get into the shed

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15858
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Add-on to exclude domains from right-click?

Post by ChrisGreaves »

PaulB wrote:...you would never be able to link to them
Thanks Paul.
I endorse Hans's comments about "cluttering up the search results", but my fall-back position is this:

If I can't modify the search engine behaviour, then on days when I search for "Access the value you entered doesn't meet the validation rules" and receive 10 hits, I thoughtlessly r/c New tab on each of the 10 hits, setting myself up with, as I think, 10 new tabs each with an essay to peruse.
If the add-on/filter quietly refused to open up two of the tabs (expert-exchange and homework-cheats) leaving me with only 8 new tabs, I'd be delighted.

I probably wouldn't notice that two were missing. "read what you've got, then move on to the next page of search results".

Does "you would never be able to link to them" refer to inhibition of the r/c new tab? Or would one have to suffer a pop-up message box saying "Sorry, not allowed" or the like?
I’ve been tidying the junk out of my shed for five years, and now can hardly get into the shed

User avatar
agibsonsw
SilverLounger
Posts: 2403
Joined: 05 Feb 2010, 22:21
Location: London ENGLAND

Re: Add-on to exclude domains from right-click?

Post by agibsonsw »

A bookmarklet could help to peform searches and exclude sites - sometimes called favelets. It should be possible to edit the following to add "-site:dont.com -site:other.com"

Code: Select all

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("You didn't select any text.  Enter a search phrase:", ""); if (q!=null) location="http://www.google.com/search?q=" + escape(q).replace(/ /g, "+"); void 0
Perhaps editing it to:

Code: Select all

replace(/ /g, "+")+"-site:dont.com - site:other.com"; void 0
I think you would have to create an HTML doc with this Javascript as a link, but I'm not quite sure. View the page in your browser, and then you can drag the bookmarklet onto your bookmarks toolbar.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

User avatar
agibsonsw
SilverLounger
Posts: 2403
Joined: 05 Feb 2010, 22:21
Location: London ENGLAND

Re: Add-on to exclude domains from right-click?

Post by agibsonsw »

I think I got it working. Enter the following into Notepad and save as an .HTML file.

Code: Select all

<a href='javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("You didnt select any text.  Enter a search phrase:", ""); if (q!=null) location="http://www.google.com/search?q=" + escape(q).replace(/ /g, "+")+"-site:experts-exchange.com"; void 0'>My Google</a>
Open this page in your browser and then drag the link onto your bookmarks toolbar.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15858
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Add-on to exclude domains from right-click?

Post by ChrisGreaves »

ChrisGreaves wrote:I use Firefox 3.6.13 to search for solutions to problems, ...
I'd also like to filter out this little baby:
1.png
You do not have the required permissions to view the files attached to this post.
I’ve been tidying the junk out of my shed for five years, and now can hardly get into the shed