Skip to content

rodrigolive/bookmarklets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Bookmarklets

This is one of the reasons I stick with Firefox.

Usage

  1. Copy the contents of the cpan_shjs.js javascript file.
  2. Open a CPAN source code page, like this one.
  3. Paste the javascript code in the location bar of your browser. Hit intro.
  4. Voilà.
  5. Try clicking on package names to navigate the CPAN.

You’ll have to run the bookmarklet everytime a source page is opened.

So, if you like what you see, create a new bookmark and paste the code in the URL field. Than it’s going to be as easy as pushing a button to highlight a CPAN source.

cpan_shjs.js

This script is quite fast because it uses the lightweight SHJS project .

Although it has no line numbering out of the box, it’s doable.

Customizing

You can theme it easily checking out this themes available here:

http://shjs.sourceforge.net/css/

cpan_sh.js

This one uses SyntaxHighlighter. It’s quite lush, but a little too busy for my taste buds. No package linking implemented, which requires developing a trigger of some sort.

Issues

Browsers

Developed and tested on Firefox 3.5. I have no idea if the rest of the browsing world support bookmarklets well. Try it then let me know if it works.

Hosting

The hightlighting scripts are hosted on their authors pages. I recommend you change it to a local repository, maybe even your harddisk. Both for performance reasons and to avoid 404 errors on repository changes.

Author

rodrigolive (Rodrigo de Oliveira)

Copyright

Blah blah blah.

About

Javascript scriptlets for bookmarking on Firefox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published