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.3 2024-12-08

< 脚本Google Hit Hider by Domain (Search Filter / Block Sites)的反馈

提问/评论

§
发表于:2018-12-11

Can sombody translate the interface text to Chinese?

Not everyone can speak/read/write English……

§
发表于:2018-12-13

I definitely do not speak/read/write Chinese. Is there a forum with a lot of Chinese speakers where someone might be interested in working on a translation?

§
发表于:2018-12-24

@"Jefferson Scher" 说道: I definitely do not speak/read/write Chinese. Is there a forum with a lot of Chinese speakers where someone might be interested in working on a translation?

I read this from bbs kafan.cn. And I am also a script writer, anything I can do, I would like to help. Or maybe I can translate this script with this version into CN.

§
发表于:2018-12-24

Hi inDarkness, what is a good approach to making a userscript multilingual? Are there successful examples?

Thinking about this in general, I think there are (at least) three aspects:

(1) Modify the script to store the text strings in variables, for example:

var strings = {
  en: { closeButton: "Close", ... }, 
  zh-CN: { closeButton: "TBD", ... } 
};

(2) Provide some UI to users to switch between available languages; possibly choose the initial language based on the value of navigator.language

(3) Modify sizing of dialogs to accommodate differences, and standardize fonts to work around website differences

Of course, there will be bugs...

§
发表于:2018-12-25

Hmm, I started working on this, but I'm getting a lot of errors. It's probably a better idea to copy the script and create a separate translated version if you want to get started right away.

§
发表于:2018-12-25
编辑于:2018-12-25

@"Jefferson Scher" 说道: Hmm, I started working on this, but I'm getting a lot of errors. It's probably a better idea to copy the script and create a separate translated version if you want to get started right away.

:D :D I considered that problem too, and what I thought is just the same as your's. But create a new script may have some differences from the ori script, it there anything I should notice in the Redme please let me know. :p :p

§
发表于:2019-01-23

@"Jefferson Scher" 说道: Hmm, I started working on this, but I'm getting a lot of errors. It's probably a better idea to copy the script and create a separate translated version if you want to get started right away.

:D Hmm, I imitate your script.And add it in my script.I think it is necessary to message you. The function ways is a copy of your's. While my script is in CN, and your's is in EN.Thanks for your idea at this script.

§
发表于:2019-03-01

Hi, I was traveling for a few weeks. Did you have a question about the license? The code is available to re-use under https://opensource.org/licenses/BSD-3-Clause

For a userscript hosted on this site, I would be happy with a short attribution like:

// Contains some code from Google Hit Hider by Domain, https://greasyfork.org/scripts/1682-google-hit-hider-by-domain-search-filter-block-sites

发表回复

登录以发表回复。