greasyfork-org / greasyfork

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

Synchronize script description #212

Closed reek closed 10 years ago

reek commented 10 years ago

Hi,

I write you to know if it is possible to add a feature, whose task would be to synchronize the Github README.md with the description of the script.

The operation would be similar to the feature that allows you to synchronize a script from another address. But in the present case it would venture to synchronize the script with the description of raw Github README.md

Greasefork https://greasyfork.org/scripts/735-anti-adblock-killer-reek

Github https://github.com/reek/anti-adblock-killer/blob/master/README.md

That would make me a great service if you can add this feature, I hope it is not too complicated to set up and I thank you in advance

Regards Reek

jerone commented 10 years ago

Some related discussions for OUJS: https://github.com/OpenUserJs/OpenUserJS.org/issues/81

+1 :+1:

reek commented 10 years ago

Hi Jerone,

I see we had the same idea :+1:

Regards Reek

tobbexiv commented 10 years ago

I like the Idea Zren or Martii had on OpenUserJs/OpenUserJS.org#81.

First check if there is a .md file with the script name and only if no such file exists, check for the readme.md. With this check it is possible to have more than one script in the same repo.

eight04 commented 10 years ago

How about writing description in comment block?

// ==UserScript==
// ... @metas ...
// ==/UserScript==

/************************************
# markdown available

*   feature 1
*   feature 2
*   ...
************************************/

your script...

This will work with single file too.

Update: I just wrote this, with jQuery and marked.

tobbexiv commented 10 years ago

If you have a look at some scripts, this would add thousands of (to the script functionality) useless lines to the code and blow up the script size unnecessarily. So having a second file would be better (and most important have a similar implementation like OpenUserJs and other pages).

TimidScript commented 10 years ago

Was going to suggest import script description from OUJS but this is better. Nice link @jerone ^_^

Import Script Description from Greasy Fork #310

JasonBarnabe commented 10 years ago

OK guys, try it out. You can configure it from the Sync screen.

jixunmoe commented 10 years ago

Sweet.

TimidScript commented 10 years ago

Nice :+1:

reek commented 10 years ago

Thanks !

2014-10-01 23:14 GMT+02:00 TimidScript notifications@github.com:

Nice [image: :+1:]

— Reply to this email directly or view it on GitHub https://github.com/JasonBarnabe/greasyfork/issues/212#issuecomment-57539660 .