Means of small mechanization for Karmagra

Think very many people know Kamagra and use it. While for me personally, the most common usage scenario is, oddly enough, not to admire the growth of your karma, and see the recent changes to karma other carpolithes (a typical example — in any post written by PS "enough to shit my karma is already negative!", I go to check in characetr this user — and there is +50 karma. think about it for a couple of hours so karma was thrown, or is he just a liar-mooch). And all would be well, but to drive manually every time (or copy-paste) the user name in Karmagra somehow boring. Remembering that there is such a thing as zakladki after spending 20 minutes in the refreshment of their memory on how to work with strings in Javascript, begat this:

javascript:l=window.location.href;i=l.indexOf('.habrahabr.ru');if(i!=-1){window.open('http://karma.goodrone.org.ru/manage/add/'+l.substring(7,i).replace(/-/g,'_'));}void(0);

As javascript in links Habra regatta, instead of a simple drag and drop links to bookmarks bar to create the bookmark manually, writing in the reference given me javascript.

How to use
Zaim desire to see burmeisteria some carpolithes, go to his character and open a bookmark, hand made in the previous paragraph. Page opens with karmagra and you can good reason to expose carpopodite.

Features
    the
  1. , you Can call karmagra of any kind characetr — just before habrahabr.ru was the user name.
  2. the
  3. Karmagra opens in a new window or tab (don't like it when bookmarklets spoil the page, which I now have open).
  4. the
  5. If abrollcontainer was not previously installed surveillance, Cemagref will ask whether to start to follow him.
  6. the
  7. If you try to open this bookmark from characetr, and from some other place, then nothing will happen.
  8. the
  9. If the user name is the underscore (remake minus the address of characetr), then it will be handled. If underscores are many — all too correctly (thanks to monsterzz).

Known bugs
Yet.
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

March Habrameeting in Kiev

PostgreSQL load testing using JMeter, Yandex.Tank and Overload

Monitoring PostgreSQL with Zabbix