Greasy Fork is available in English.

Discussions » Greasy Fork Feedback

Better way to show if the script is CSS or JS

q1k
§
Posted: 08-01-2021
Edited: 08-01-2021
So I was wondering if there are plans to show a tag if it's a js or css entry while searching.
For example, I'd prefer to install CSS over JS if I'm looking for purely visual changes for a website.
As it is now I'd have to do 2 separate searches, so I don't have to open every script to check if it's js or css.
The solution would be simple, while browsing/searching, show a tag in front of the title if it's a css script
q1k
§
Posted: 10-01-2021
Edited: 10-01-2021

I've done this for myself.

If anyone else is interested, here's the css code:

li[data-script-language="css"] a.script-link::before,
li[data-script-language="js"] a.script-link::before {
  font-size: 85%;
  text-decoration: none;
  color: white;
  padding: 0 5px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2em;
  font-family: Calibri, Helvetica, Arial, sans-serif;
}

li[data-script-language="css"] a.script-link,
li[data-script-language="js"] a.script-link {
  display: flex;
}


li[data-script-language="css"] a.script-link::before {
  content: "CSS";
  background: #008000;
}
li[data-script-language="js"] a.script-link::before {
  content: "JS";
  background: #8b4513;
}

§
Posted: 10-01-2021
I've added an indicator that only shows if you picked Language: All.
q1k
§
Posted: 10-01-2021
Edited: 10-01-2021
It also needs to work on the profile pages.

And a little unrelated question, can I have "ALL" preselected when browsing/searching?
§
Posted: 10-01-2021
Now showing on user pages too.

There's currently no way to default to all languages.
§
Posted: 18-01-2021
Edited: 18-01-2021
Now showing on user pages too.

There's currently no way to default to all languages.
But why isn't this showing up when searching for scripts? this is great.

I think that greasyfork should also have a filter option to display only userscripts and for userstyles in the search results
§
Posted: 18-01-2021
Edited: 18-01-2021

But why isn't this showing up when searching for scripts?

It only shows when you could possibly get a mix of JS and CSS.

I think that greasyfork should also have a filter option to display only userscripts and for userstyles in the search results

It does.

§
Posted: 18-01-2021
@JasonBarnabe

I thought that it showed the language that was mainly used on the script. They weird thing is that, this symbol isn't shown anywhere on popular pages like these
https://greasyfork.org/en/scripts/by-site/baidu.com
https://greasyfork.org/en/scripts/by-site/youtube.com
https://greasyfork.org/en/scripts/by-site/google.com

Sorry, I've found the filtering search option now.
§
Posted: 18-01-2021

this symbol isn't shown anywhere on popular pages like these

It's intended.

I've added an indicator that only shows if you picked Language: All

because it's just clutter otherwise. You don't need a little icon to know a script is JS if you're only searching for JS.

Post reply

Sign in to post a reply.