Comments (7)
Checking only the name should not be enough:
If more users come to use the import function (and if batch import became available), i think some error can arrive:
Userstyles as a limitation for the userstyle's name and many userstyle for generic sites ( Google, YouTube...) and a same same type of change (Dark and Gray,..) can easily have a similar name, i suppose.
On greasyfork, i see many userscripts with the same name (and when i want remember them, i need add more infos if i bookmark them).
Not certain it should be a great deal, but if it possible to use another thing than title...
from userstyles.world.
We currently just check the style's name. I'm not sure if that is enough to prevent such issue as I don't know a clear example of this. https://github.com/userstyles-world/userstyles.world/blob/main/handlers/style/import.go#L84
from userstyles.world.
The warning will be "Duplicate style name". If it ends up being necessary, we could also check for equality in source code and/or other fields, but I think that having unique style names should be good enough.
Source: https://github.com/userstyles-world/userstyles.world/blob/653001fb38/models/style.go#L179
from userstyles.world.
can easily have a similar name, i suppose
That's why we check both the style name and the user ID. While I agree that it's not enough, it served us well thus far.
but if it possible to use another thing than title
By adding source code to the comparison, we will probably be good to go in 99.99% of the use-cases.
from userstyles.world.
By adding source code to the comparison, we will probably be good to go in 99.99% of the use-cases.
Wouldn't take take quite a performance hog?
from userstyles.world.
Wouldn't take take quite a performance hog?
Maybe. It's worth testing regardless of it being added or not.
from userstyles.world.
Added source code to comparison. If it ends up causing performance issues, we will revisit it.
from userstyles.world.
Related Issues (20)
- Ability to change email
- "Please contact us and provide this timestamp"
- Add descriptions to error page
- Enable automatic updates from the GitHub webhook.
- Style review notifications HOT 1
- Description is not updated when a style is uploaded from Stylus plugin HOT 6
- Bi-directional link to Github HOT 2
- Web search engine compatibility HOT 2
- Sign in details in email
- Dark color theme is used for a couple of frames during page load in light-themed browser/OS HOT 2
- Unnecessary horizontal scrollbar when window width is 1444px or less
- security.txt expired
- Error: Couldn't parse param "id" HOT 2
- error 500 when trying to update userstyle HOT 4
- add information on valid file names for source code mirroring HOT 3
- Ideas for other userstyle types
- Mirroring: I cannot set my GitLbab URL :( HOT 1
- Improve account deletion confirmation
- Review cancel link broken
- When Deleting an existing Userstyle (Not updated anymore or Obsolet or deprecated...), Add a way to redirect to an other userstyle
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userstyles.world.