Greasy Fork is available in English.

Google Hit Hider by Domain (Search Filter / Block Sites)

Block unwanted sites from your Google, DuckDuckGo, Startpage.com, Bing and Yahoo search results. v2.3.1 2024-05-11

< 腳本Google Hit Hider by Domain (Search Filter / Block Sites)的回應

評論:正評 - 腳本一切正常

§
發表於:2017-02-23

The block button cannot be clicked

The button shows when I hover on the link, but it's unclickable.

§
發表於:2017-02-23

Hi Ooker, let's see if we can figure this out.

I'm going to assume you're using Google. If you are not using Google, could you give the address of the results page where the buttons can't be clicked?

It sounds as though you changed "Display block buttons" from "Always" to "On Mouseover" on the "Options" tab of the Manage Hiding dialog. With that setting: the button should appear if you hover anywhere over the result, it should turn yellow when you hover the button itself, and if you wait, a tooltip should appear explaining the result of clicking the button. That works for me on Google results this morning -- I can click the button -- but there are many others settings which could be coming into play.

If your block button turns yellow when you hover it but clicking has no result, it's possible that the block dialog is not appearing. What happens if you turn on 1-click blocking? That's on the "Home" tab of the Manage Hiding dialog.

Could you describe any other non-default settings you have for the script?

In case you have a previously unknown Google results layout, could you test in a private window (a private window will not re-use cached pages from regular windows or previously set cookies) to see whether that makes any difference?

Thanks.

§
發表於:2017-02-23

Hi, I find out that the script is in conflict with the Google search tweaks script. For any link that has shortcut, the block button cannot be click. If I disable it, it works again. Thanks for your helping :)

For more information, yes the button does turn yellow and show tooltip when I hover it. Changing the setting won't fix the problem.

§
發表於:2017-02-23

You might try moving the block button to the cite line to see whether that helps. Also under Options, "Block button position (reloads):". I haven't tested with that other script.

§
發表於:2017-02-24

Cite line displaying does not help either. By the way, what does it do when I ALT+click? I can't see any difference

§
發表於:2017-02-24

Okay, I see the problem. Line 39 of the other script does a complete rewrite of the result using innerHTML. A known effect of that is to strip the click handler from my button. To fix this, you need to edit the other script:

OLD LINE 39:

gs[i].innerHTML = `${i+1}${gs[i].innerHTML}`;

REPLACEMENT LINE 39:

gs[i].insertAdjacentHTML('afterbegin', `${i+1}`);

Let me know if that works for you.

§
發表於:2017-02-25

It works, thanks. You are so helpful :smiley:

發表回覆

登入以回復