Google site: Tool (Site results / Exclude sites)

Easily add site: or -site: to modify your current Google query. v1.5.2 2023-02-25

< Feedback on Google site: Tool (Site results / Exclude sites)

Question/comment

update it pls

update it pls

§
Posted: 2017-04-09

Hi, what problem are you having?

§
Posted: 2018-09-27

It doesn't work with Firefox anymore (I'm using v62.0.2 64 bit). I've tried it with Tampermonkey and Violentmonkey, none of them works. It still works well with Chrome.

Thanks for your script.

§
Posted: 2018-09-27

Does your Google have a different layout in Firefox than in Chrome? Sometimes Google performs user interface experiments that modify the page and then the script can't find the URL. Sometimes clearing cache and your Google cookies will exit the experiment, if that's the problem. Otherwise, it is very difficult for me to know what is different on yours.

§
Posted: 2018-09-27

I've tried deleting all cookies for google.com and nothing, but if I open a private window it works well...

§
Posted: 2018-09-27

@Floyd dijo: I've tried deleting all cookies for google.com and nothing, but if I open a private window it works well...

Are you logged into your Google account in the regular window, and anonymous in the private window? That usually wouldn't affect the layout of your results, unless your account is part of a user interface experiment.

Could you share the code of a couple results that the script doesn't work on? I'm not sure of the easiest way to do that, but one way is to right-click a line in the result, and choose Inspect Element (Q) to open the Page Inspector to that part of the page. Then scroll up in the HTML until you see:

<div class="g"

Right-click that and expand Copy and click Outer HTML.

Then you can paste that here. Please use formatting code on the line before and the line after the pasted code: ```` (4 back-ticks). That will mark it as a code block so hopefully it won't get corrupted by the editor here.

As an example:

<div class="g" ghhresult="unset"><!--m--><div data-hveid="CAgQAA" data-ved="2ahUKEwj29cOe7NvdAhXkCTQIHWG2AFAQFSgAMAB6BAgIEAA"><div class="rc"><h3 class="r" style="overflow: visible;"><a href="https://greasyfork.org/en/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites" onmousedown="return rwt(this,'','','','1','AOvVaw2YjGvfiguy21C7k-Fpt8lw','','2ahUKEwj29cOe7NvdAhXkCTQIHWG2AFAQFjAAegQICBAB','','',event)" hreforiginal="https://greasyfork.org/en/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites" title="Google Hit Hider by Domain (Search Filter / Block Sites) - Greasy Fork">Google Hit Hider by Domain (Search Filter / Block Sites) - Greasy Fork</a><button class="ghhider ghhb" meta="greasyfork.org" title="Block greasyfork.org / SHIFT+click to display block form / ALT+click to omit">block</button></h3><div class="s"><div><div class="f hJND5c TbwUpd" style="white-space:nowrap"><cite class="iUh30" sitelistener="https://greasyfork.org/en/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites" style="cursor: pointer;" title="Limit search to this site or exclude this site">https://greasyfork.org/en/.../1682-google-hit-hider-by-domain-search-filter-block-sites</cite><div class="action-menu ab_ctl"><a class="GHDvEf ab_button" href="#" id="am-b0" aria-label="Result Options" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="2ahUKEwj29cOe7NvdAhXkCTQIHWG2AFAQ7B0wAHoECAgQAg"><span class="mn-dwn-arw"></span></a><div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="2ahUKEwj29cOe7NvdAhXkCTQIHWG2AFAQqR8wAHoECAgQAw"><ol><li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="https://webcache.googleusercontent.com/search?q=cache:p7MDb1BNjVEJ:https://greasyfork.org/en/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites+&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us" onmousedown="return rwt(this,'','','','1','AOvVaw3PJg0WFJQyRI_pQmqGSVrp','','2ahUKEwj29cOe7NvdAhXkCTQIHWG2AFAQIDAAegQICBAE','','',event)">Cached</a></li><li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?q=related:https://greasyfork.org/en/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites+%22google+hit+hider%22&amp;tbo=1&amp;sa=X&amp;ved=2ahUKEwj29cOe7NvdAhXkCTQIHWG2AFAQHzAAegQICBAF">Similar</a></li></ol></div></div></div><span class="st"><span class="f">May 25, 2014 - </span><em>Google Hit Hider</em> by Domain (Search Filter / Block Sites). Block unwanted sites from your Google, DuckDuckGo, Startpage.com, Bing and&nbsp;...</span></div></div><div data-base-uri="/search?lei=pyWtW7aGJuST0PEP4eyCgAU" jsl="$t t--ddbPTeIsNI;$x 0;" class="r-iahL9E2ZbkOg" data-ved="2ahUKEwj29cOe7NvdAhXkCTQIHWG2AFAQ2Z0BMAB6BAgIEAc"><div class="AUiS2 iahL9E2ZbkOg-7_jVsFT_9Io" id="eobm_0" data-ved="0ahUKEwjPrJmf7NvdAhWXFTQIHfreDuUQx40DCAE"><div id="eobd_0" class="iahL9E2ZbkOg-uhagcrfPmuU" style="display:none"><div data-ved="0ahUKEwjPrJmf7NvdAhWXFTQIHfreDuUQsKwBCAIoAA">linkify plus firefox</div><div data-ved="0ahUKEwjPrJmf7NvdAhWXFTQIHfreDuUQsKwBCAMoAQ">pinterest scripts</div><div data-ved="0ahUKEwjPrJmf7NvdAhWXFTQIHfreDuUQsKwBCAQoAg">mouseover userscript</div><div data-ved="0ahUKEwjPrJmf7NvdAhWXFTQIHfreDuUQsKwBCAUoAw">bypass pinterest login</div><div data-ved="0ahUKEwjPrJmf7NvdAhWXFTQIHfreDuUQsKwBCAYoBA">simple youtube mp3 button chrome</div><div data-ved="0ahUKEwjPrJmf7NvdAhWXFTQIHfreDuUQsKwBCAcoBQ">greasemonkey</div></div><span class="XCKyNd" id="eobs_0" aria-label="Dismiss suggested follow ups" role="button" tabindex="0" jsaction="r.pz0qjfJrMDo" data-rtid="iahL9E2ZbkOg" jsl="$x 2;"></span><div><div class="d8lLoc iahL9E2ZbkOg-eEjGhTK0s34" id="eobc_0"><h4 class="eJ7tvc iahL9E2ZbkOg-ZgH0LU9o8RU" id="eobp_0">People also search for</h4><div class="hYkSRb iahL9E2ZbkOg-ICxnu-SGsqE" id="eobr_0"></div></div></div></div></div></div></div><!--n--></div>
§
Posted: 2018-09-27
Edited: 2018-09-27

No, I am logged out because I cleared all cookies. Is this what you need?

<div class="g"><!--m--><div data-hveid="CAcQAA" data-ved="2ahUKEwitmKDa8NvdAhXMzYUKHSijAO0QFSgAMAB6BAgHEAA"><div class="rc"><div class="r"><a href="https://greasyfork.org/en/scripts/1679-google-site-tool-site-results-exclude-sites" onmousedown="return rwt(this,'','','','1','AOvVaw0kg8EncIDK1jssbAM6Uer_','','2ahUKEwitmKDa8NvdAhXMzYUKHSijAO0QFjAAegQIBxAB','','',event)"><h3 class="LC20lb">Google site: Tool (Site results / Exclude sites) - Greasy Fork</h3><br><div style="display:inline-block" class="TbwUpd"><cite class="iUh30" sitelistener="https://greasyfork.org/en/scripts/1679-google-site-tool-site-results-exclude-sites" style="cursor: pointer;" title="Limit search to this site or exclude this site">https://greasyfork.org/.../1679-google-site-tool-site-results-exclud...</cite></div></a><span><div class="action-menu ab_ctl"><a class="GHDvEf ab_button" href="#" id="am-b0" aria-label="Opciones de resultados" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="2ahUKEwitmKDa8NvdAhXMzYUKHSijAO0Q7B0wAHoECAcQAg"><span class="mn-dwn-arw"></span></a><div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="2ahUKEwitmKDa8NvdAhXMzYUKHSijAO0QqR8wAHoECAcQAw"><ol><li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="https://webcache.googleusercontent.com/search?q=cache:0LHclv-W3BAJ:https://greasyfork.org/en/scripts/1679-google-site-tool-site-results-exclude-sites+&amp;cd=1&amp;hl=es&amp;ct=clnk&amp;gl=es" onmousedown="return rwt(this,'','','','1','AOvVaw0zJd0tZ8iWZ68B4yiCpepQ','','2ahUKEwitmKDa8NvdAhXMzYUKHSijAO0QIDAAegQIBxAE','','',event)">En&nbsp;caché</a></li></ol></div></div></span><a class="fl" href="https://translate.google.com/translate?hl=es&amp;sl=en&amp;u=https://greasyfork.org/en/scripts/1679-google-site-tool-site-results-exclude-sites&amp;prev=search" onmousedown="return rwt(this,'','','','1','AOvVaw1kesLsJmPMfQx16Y1SYB7e','','2ahUKEwitmKDa8NvdAhXMzYUKHSijAO0Q7gEwAHoECAcQBg','','',event)">Traducir esta página</a></div><div class="s"><div><span class="st"><span class="f">25 may. 2014 - </span><em>Google site</em>: <em>Tool</em> (<em>Site results</em> / <em>Exclude sites</em>) ... Google Chrome users: Install the Tampermonkey extension from the Chrome store BEFORE&nbsp;...</span></div></div></div></div><!--n--></div>

§
Posted: 2018-09-27

Thanks, the way the tags are arranged is quite different, so I'll need to study it and see how to work with it.

§
Posted: 2018-09-27

Thanks a lot for your help, I'll wait patiently :smile:

§
Posted: 2018-09-28

Today it works well again, it was probably an experiment on google's side as you noted.

Thanks, regards.

Post reply

Sign in to post a reply.