Giter VIP home page Giter VIP logo

bookmarklets's Introduction

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.

bookmarklets's People

Contributors

gilchristcalunia avatar rodrigolive avatar

Stargazers

 avatar Angus H. avatar Chanwoong Kim avatar 2mad4milk avatar  avatar Henning Manske avatar Leo Lapworth avatar Sawyer X avatar Ævar Arnfjörð Bjarmason avatar Aristotle Pagaltzis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.