Discussions » Greasy Fork Feedback

Sync additional info

§
Posted: 2014-10-02

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: 2014-10-03
Edited: 2014-10-03

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

§
Posted: 2014-10-04

Fixed!

§
Posted: 2014-10-04

Hi Jason,

I just tried and it works wonderfully, thanks.

Regards
Reek

§
Posted: 2014-10-10
Edited: 2014-10-10

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: 2014-10-10

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: 2014-10-10

Nice!

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

§
Posted: 2014-10-11
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: 2014-10-12

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

§
Posted: 2014-10-13

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.