greasyfork-org / greasyfork

An online repository of user scripts.
https://greasyfork.org
GNU General Public License v3.0
1.42k stars 428 forks source link

Userscript location origin #90

Closed jerone closed 10 years ago

jerone commented 10 years ago

Some script only work on local sites (Dutch, Chinese, etc...). It would be nice if scriptwriters could specify the (multiple) location origin of the script, so users can include or exclude those from their listings and/or searches.

tiansh commented 10 years ago

Which is better? Location or language?

jerone commented 10 years ago

Actually I meant location, but language can be used too i guess in this situation.

JasonBarnabe commented 10 years ago

Is a Chinese site to someone to doesn't speak Chinese any different than, say, a Facebook site to someone who doesn't use Facebook?

jerone commented 10 years ago

What I meant, is that for example there are a growing amount of Chinese userscripts on GF. They run on Chinese sites, have an Chinese name & description and most even have Chinese code comments. Those userscripts are completely to no use of me and I wish I could hide them. Same as that I have a few Dutch userscripts that are only interesting for a selective few users.

To make this work, collaboration from the script authors is required, but it could also help users search for location/language specific userscripts.

JasonBarnabe commented 10 years ago

Right, I understood that part. What I'm saying is that I don't see the difference between a user not wanting to see a script for a Chinese site because they can't read Chinese and a user not wanting to see a script for a Facebook site because they don't use Facebook.

tiansh commented 10 years ago

Location or Language means a set of website. Maybe it's much easier to set as filter.

for example, one user could only read English. But when she open the list of script, there are many scripts just like...

It may be helpful if there is a filter like "only show scripts for english site" instead of a group of filters like "don't show scripts on baidu.com" "don't show scripts on youku.com" "don't show scripts on niconico.jp". maybe she even do not care what sites are this scripts work on.

And, "one do not use facebook last month but she do now" is much easier than "one do not understand Chinese last month but she do now".

jerone commented 10 years ago

Right, I understood that part. What I'm saying is that I don't see the difference between a user not wanting to see a script for a Chinese site because they can't read Chinese and a user not wanting to see a script for a Facebook site because they don't use Facebook.

Because there's a fixed amount of languages and an infinity amount of different websites.

But if you see languages as groups, it's also possible to make groups for websites.

jixunmoe commented 10 years ago

It may be helpful if there is a filter like "only show scripts for english site" ...

This script Greasy Fork (Firefox) provides the function to filter English only script based on the title and description.

Owyn commented 10 years ago

In my opinion an option to specify language of a userscript+its website+target auditory (one option to specify it all) would be great and if includes, matches only match websites in some language zone ( .cn ) - autosuggest Chinese in that option when uploading script

jerone commented 10 years ago

In a limited variant, this feature has been implemented by MonkeyGuts.

jesus2099 commented 10 years ago

I agree with Jason, I mean I would rather use a filter to filter out Facebook* than languages (where I will miss some gems).

But don’t take my opinion too seriously because I don’t think I would use any filter. I already search by sites and don’t want to miss a thing. ;)

JasonBarnabe commented 10 years ago

This will require #199.

JasonBarnabe commented 10 years ago

I've added support for "by language" in script sets, so you should now be able to set them to include or exclude whatever languages you choose. Script sets in general need some more improvements, but I think this specific portion of them should be working fine.

tiansh commented 10 years ago

What if a script is for multi location / language? Let say, for example, a website / userscript with both Chinese and Japanese, but no other languages like English ...

JasonBarnabe commented 10 years ago

See #199 for discussion on that.