Discussions » Greasy Fork Feedback

Sync additional info

§
Posted: 02 Oktober 2014

Sync additional info

Script authors: just as you could already have your code synced from your GitHub repo (or wherever), now you can have your script's additional info synced from GitHub (or again, wherever)! You can set this up from the Sync tab of your script. You can even set up multiple additional infos for multiple languages.

Just like the code sync feature, be sure that you're pointing to the raw content (like https://raw.githubusercontent.com/JasonBarnabe/stylish/master/README) and not a page containing the content (like https://github.com/JasonBarnabe/stylish/blob/master/README).

Any bugs or suggestions, post here!

§
Posted: 03 Oktober 2014
Edited: 03 Oktober 2014

currently, importing an html page will show <script> tag content. and i prefer to remove it.

§
Posted: 04 Oktober 2014

Fixed!

§
Posted: 04 Oktober 2014

Hi Jason,

I just tried and it works wonderfully, thanks.

Regards
Reek

§
Posted: 10 Oktober 2014
Edited: 10 Oktober 2014

my html web page has an image in relative path, and it seems not work when sync from it. I'm not sure where is wrong.

this is the script: https://greasyfork.org/zh-CN/scripts/2231-bilibili-ass-danmaku-downloader
and this is the description webpage (sync additional info from): https://tiansh.github.io/us-danmaku/bilibili/

The image cannot be shown and no "src" attribute found in the result.

§
Posted: 10 Oktober 2014

The sync process is just taking the HTML/Markdown straight from where you provide. The result is run through Greasy Fork's HTML sanitizer, which only allows https images.

§
Posted: 10 Oktober 2014

Nice!

I think we should be able to add urls on import page too!

§
Posted: 11 Oktober 2014
The sync process is just taking the HTML/Markdown straight from where you provide. The result is run through Greasy Fork's HTML sanitizer, which only allows https images.

So, maybe the issue is that the sync process cannot recognize relative path.

§
Posted: 12 Oktober 2014

The sync copies the code and checks for allowed / not allowed elements => relative paths don't start with https => they get deleted

§
Posted: 13 Oktober 2014

It's a reasonable suggestion, but I don't know of a library that would let me do it...

https://github.com/JasonBarnabe/greasyfork/issues/289

Post reply

Sign in to post a reply.