Skip to content
Commits on May 13, 2012
  1. @aszlig
  2. @aszlig
  3. @aszlig
Commits on May 8, 2012
  1. @aszlig

    Add a README.md.

    aszlig committed May 8, 2012
  2. @aszlig

    Add example code.

    aszlig committed May 8, 2012
  3. @aszlig

    Generate dashes for underscores in Haxe meta.

    The GreaseMonkey specification defines one metadata keyword called run-at, which
    contains a dash, so we need to use an underscore in the metadata in order to get
    a dash in the output file's header.
    aszlig committed May 8, 2012
  4. @aszlig

    Add and integrate a new Watcher class.

    This should wrap up the core functionality of the userscript library, which
    checks for the values or existence of certain values defined by metadata and
    initializes the main javascript as soon as every watched variable has become
    available.
    aszlig committed May 8, 2012
  5. @aszlig

    Only extract string meta in Generator.

    This is because we are only interested in strings, so no need to be highly
    dynamic with this.
    aszlig committed May 8, 2012
  6. @aszlig

    Put meta processing stuff in a common base class.

    This base class needs to be more generic but for now it's shared by
    MetaGenerator and InitGenerator, as both classes need to process metadata.
    aszlig committed May 8, 2012
  7. @aszlig

    Add InitGenerator class to generate the loader.

    This class currently doesn't observe variables but ensures that the userscript
    runs in page scope, rather than in its own sandbox.
    
    The technique behind this is to manipulate the dom tree by inserting a new
    script element with the userscript code and as soon as it is evaluated removing
    it again.
    aszlig committed May 8, 2012
  8. @aszlig

    Refactor a bunch of static functions.

    This is involves all the metadata generation machinery as well as writing the
    template file. With this commit we get our plain code inserted into the output
    file without any scope changing stuff or variable observation features.
    aszlig committed May 8, 2012
  9. @aszlig

    Add new Constants class.

    aszlig committed May 8, 2012
Commits on May 7, 2012
  1. @aszlig

    Add UserScript.generate() for the final run.

    The userscript compilation is done in two steps, where this one is tho last.
    We use the compiled JS as input and replace the #CODE_HERE# marker with the code
    plus some userscript related initialization code.
    aszlig committed May 7, 2012
  2. @aszlig
  3. @aszlig

    Only use userscript meta keys in whitelist.

    This is to allow for additional metadata, for example to add watchers in
    userscript metadata.
    aszlig committed May 7, 2012
Commits on May 6, 2012
  1. @aszlig

    Dynamically generate userscript filename.

    Previously we had cncta.user.js hardcoded, so let's avoid tying it to one
    specific project, right? ;-) Unfortunately I don't know of a good way to make
    post-compilation stuff "nicely integrated" without the need to write a custom JS
    generator.
    
    So, next is some documentation about the post-compilation step and the actual
    implementation.
    aszlig committed May 6, 2012
  2. @aszlig

    Turn userscript.UserScript into an interface.

    This new interface is built by using macros. Currently this just extracts
    metadata and writes it to a file called "cncta.user.js", where the filename is
    going to be removed soon, too and is only a workaround at the moment.
    aszlig committed May 6, 2012
Commits on May 4, 2012
  1. @aszlig

    Add license.

    aszlig committed May 4, 2012
  2. @aszlig
  3. @aszlig
  4. @aszlig
  5. @aszlig
  6. @aszlig

    Add code from cncta repository.

    This is more or less unchanged, so we need to clean up lots of stuff and do a
    sane implementation for creating userscript without the rather ugly style we
    have used in the cncta project so far.
    aszlig committed May 4, 2012
  7. @aszlig

    Initial commit of haxelib.xml.

    aszlig committed May 4, 2012
Something went wrong with that request. Please try again.