Skip to content

Instantly share code, notes, and snippets.

@thedod
Last active December 16, 2015 08:09
Show Gist options
  • Save thedod/5404038 to your computer and use it in GitHub Desktop.
Save thedod/5404038 to your computer and use it in GitHub Desktop.
2+D bookmarklet

2+D is a bookmarklet that takes you from a legacy wikileaks cable page to its counterpart at the PlusD repository (offering highlighter permalinks and other features).

<p>Drag the <a
href="javascript:{var u=location.toString();if(!u.search(/^https?:\/\/(www.)?wikileaks.org\/cable\//i))location='https://wikileaks.org/plusd/cables/'+u.split('/')[6].split('.')[0]+'_a.html';void(0);}"
>2+D</a>
bookmarlet to your bookmark toolbar.<br>
You can then click on the bookmarklet at any <a target="_blank" href="https://wikileaks.org/cable/2008/04/08LIBREVILLE189.html">legacy cablegate page</a> to view it at <a target="_blank" href="https://wikileaks.org/plusd/">Plus D</a> (with bells and whistles like slick wikipedia/google integration and highliter permalinks).</p>
<p>This is specifically helpful for <a target="_blank" href="http://thedod.github.io/cableweaving/">CableWeaving</a> story-lines created before V0.6 of <a target="_blank" href="http://thedod.github.io/cableweaver/">CableWeaver</a>, but there are many other ways you can wind up on a "cablegate classique" page, so keep this bookmarklet under your pillow &#128572;</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment