Block unwanted sites from your Google, DuckDuckGo, Startpage.com, Bing and Yahoo search results. v2.3.3 2024-12-08
< Feedback on Google Hit Hider by Domain (Search Filter / Block Sites)
Hi, two questions:
(1) What browser and user script extension do you use? For example: Firefox + Violentmonkey, Chrome + Tampermonkey
(2) In case Google has changed the layout of the results page, but I don't see the change yet, can you share some page code from a basic search (nothing personal)? Here's how:
After running your search, right-click a little to the left of the first organic web result and choose Inspect. This should open the Developer Tools with that element highlighted in the HTML panel.
When you hover the mouse over that HTML tag, a blue overlay in the page should show that it contains the organic search results.
Right-click that HTML tag > Copy > outerHTML
Then create a new paste on https://pastebin.com/ and in the "Syntax Highlighting" selector, choose HTML. You can give it a name if you like. Here's an example of what you could expect to see after the submission appears with its unique URL:
Hopefully I can figure out what is different on yours and update the script.
Microsoft Edge Tampermonkey
https://pastebin.com/1AYp1giT
Thank you for testing on Edge. (I don't.)
What I see in the Pastebin is something like part of the interior content of one result. I am interested in seeing the structure of the entire results section. Could you post more code? You may need to scroll up in the HTML tree to find the outer elements. For me, a typical Google organic results section currently has this general structure:
...
<div id="rcnt">
...
<div id="res">
...
<div id="rso">
<div class="g"> (one of these for each result)
This information feeds into the code on a line like this to try to match all the variations of Google results pages we've seen over the years:
liels = document.querySelectorAll("#res li.g, #res div.srg div.g, #res div._NId div.g, #res div._bkWMgd div.g, #res #rso div.g, #res #GTR div.g, #res #isr_mc, g-section-with-header g-scrolling-carousel g-inner-card, g-card div.dbsr, g-card");
Thanks.
ok THIS time i made sure it was next to
https://pastebin.com/bWTmv4K8
Thanks, but could you try copying from a few more levels up because my code is trying to match these patterns and I need to see where the difference is:
<div id="res">
... <div class="srg">
... <div class="g">
<div id="res">
... <div class="_NId">
... <div class="g">
<div id="res">
... <div class="_bkWMgd">
... <div class="g">
<div id="res">
... <div id="rso">
... <div class="g">
<div id="res">
... <div id="GTR">
... <div class="g">
(For reference, when I search multiverse unstable
in Firefox with Violentmonkey, there's a block button for the main headline of the result, but not the individual pages grouped below it.)
try this
https://pastebin.com/5nFTDTvF
Sorry, but this is the same thing. The paste starts with <div class="g">
and as mentioned in an earlier reply, I need you to click further up in the HTML tree to get the structure of the results section.
https://pastebin.com/ZfnNwtnx
and THIS time i'm including a screen grab of where i'm clicking
Thanks for the screenshots. As you glace up the HTML tree, you see the <div>
element with id="rso". I think this is starting to look normal, but to confirm that, keep working your way up and look for the <div>
element with id="res". You can compare with another browser.
If that is all normal, there might be some difference in the way Edge/Tampermonkey works compared with Chrome/Tampermonkey.
Maybe it was a Google experiment? We waste so much time with those.
The block button has vanished on goggle fix it please