Skip to content
Commits on Apr 9, 2012
  1. Let the user know the bookmarklet is active

    committed Apr 9, 2012
    Previously, tapping on the bookmarklet gave no indication that
    anything had changed. This can be a bit disconcerting for the user,
    so give them an alert to let them know what to do next.
    
    An alternative/addition might be to add a stylesheet that restyles
    bookmarklet anchors.
    
        a[href^="javascript:"] { ... !important }
  2. Make the textarea taller

    committed Apr 9, 2012
    The percentage height for the textarea was not terribly effective.
    Use a fixed "pixel" height instead.
  3. Switch to a window-level capture handler

    committed Apr 9, 2012
    Some bookmarklets are hosted on pages that bind a capturing event
    listener to a higher-level element to prevent the accidental use of
    the bookmarklet on its hosting page.
    
    Move all of our click handling into a single capturing handler on
    the window object (the highest level).
    
    This should allow us to usurp any capturing handlers installed at
    a *lower* level. There is nothing we can do if there is a prior
    window-level capturing handler that stops propagation (it will run
    first and prevent our handler from running).
  4. Use plural in title to match elsewhere

    committed Apr 9, 2012
    Most other places use "view bookmarklets bookmarklet"; adjust the
    title in the HTML to match.
Commits on Jun 17, 2011
  1. add README.md

    committed Jun 16, 2011
  2. change gh-pages/index.html to a regular file

    committed Jun 16, 2011
    GitHub does not seem to like the symlink: it shows the "Page does
    not exist!" error page while accessing the page for the actual HTML
    file works fine.
  3. LICENSE: Simplified BSD

    committed Jun 16, 2011
  4. jshint integration

    committed Jun 15, 2011
    Extend the `lint`, `do-jslint`, and `do-jslint-html` *make* targets
    to optionally use jshint by setting `JSHINT` to `--jshint`.
    
    E.g. `make do-jslint JSHINT=--jshint`
    
    Since *jshint* does not parse HTML, it is only really useful for the
    `do-jslint` target.
  5. JSLint integration and make targets

    committed Jun 15, 2011
    Use `make do-jslint` to check just `*.js`.
    
    Use `make do-jslint-html` to check just `*.html*` (for both the
    `.html.in` file and the generated `.html` file).
    
    Use `make lint` to check both.
Commits on Jun 15, 2011
  1. gh-pages automation

    committed Jun 15, 2011
  2. automate embedding of JavaScript

    committed Jun 15, 2011
    The substitution in the `.html.in` is into an attribute quoted with
    double quotes, so we need to change `"` to its entity form
    (`"`) to protect it inside the HTML.
    
    In addition, we need to take care of several special characters
    since the string will be used as the replacement string used in
    a *sed* `s` command:
    
        `\` and `&` to avoid normal special treatment
        `/` because it is the delimiter for the outer replacement
  3. JavaScript and HTML

    committed Jun 15, 2011
    Seems to work okay in Mobile Safari under the iOS simulator.
    
    It seems like the overlay is not quite as all-covering as it is on
    desktop Safari (usually one edge is still visible and scrolling will
    scroll the overlay out of the "viewport").
  4. initial commit

    committed Jun 13, 2011
Something went wrong with that request. Please try again.