Greasy Fork is available in English.

annotation

在网页上添加注释,文字高亮。本脚本基于‘Annotation’--一个可以轻松在网页上添加注释的公开库。我仅仅将代码整合一下,使其成为一个类似add-one的用户脚本。//To easily annotate and highlight the contents on webpage.This userscript relays on 'Annotator'--an open-source JavaScript library to easily add annotation functionality to any webpage. I just integrated some code and make it a add-one like userscript.

< Commentaires sur annotation

Question / commentaire

§
Posté le: 07/07/2014

Minified

This seems to use a minified version of the annotator library ( https://github.com/okfn/annotator/ ) -- please use a fully expanded version, for ease of review.

cinimaAuteur
§
Posté le: 09/07/2014
Édité le: 09/07/2014

I can't find a fully version in their website or github , so.....

§
Posté le: 09/07/2014

Apparently Annotator is actually written in CoffeeScript, then compiled into Javascript. So what would be better was to @require the hosted copy (see http://docs.annotatorjs.org/en/latest/getting-started.html ) then monkey-patch whatever changes you need to do to make it work as a userscript. That way only the changes need to be stored on greasyfork, minimizing what needs to be reviewed.

Poster une réponse

Connectez-vous pour poster une réponse.