boneskull / bricklink-scripts

A collection of user scripts for bricklink.com
1 stars 0 forks source link

User scripts end in `.user.js` #1

Open Martii opened 10 years ago

Martii commented 10 years ago

You do know that User scripts end in .user.js right?

It would appear that your recently added library is a user script. You might want to consider publishing it on OpenUserJS.org (OUJS) as such for better exposure.

See an upcoming, committed, change at OpenUserJs/OpenUserJS.org#418 that will affect your script.

boneskull commented 10 years ago

@Martii Re .user.js, news to me.

I didn't want to add a "library"; I wanted to add a script. I chose to import the script from GitHub, but it added it as a "library". This was unclear.

See my response in OpenUserJs/OpenUserJS.org#418.

Martii commented 10 years ago

I didn't want to add a "library"; … This was unclear.

The import from GitHub (GH) allows you to import Library scripts and User scripts at the same time... not entirely sure why @Zren and possibly @sizzlemctwizzle did it this way... however the current blue "badge" for somename.js shows things as a Library and again if it ends in somename.user.js already the blue badge shows UserScript.

Since you are intending it to be a User script you should perform a git mv auto-load-images.js auto-load-images.user.js and modify any other urls to reflect the new path... Once you confirm that your other wrapped portion of the User script is functional you should push to GH; delete the library on OUJS; and then reimport the newly renamed user.js to OUJS so users can install it... instead of them using it as a Library script referenced inside of a User script.

Does that help?

boneskull commented 10 years ago

@Martii Yes, thanks.