📜 ⬆️ ⬇️

Booklet for sharing in Odnoklassniki.ru

Many social networks and communities have examples of using bookmarklets for sharing pages, images, etc. from the browser. I think this is convenient if you like to share content frequently through the social network. For example, to share a photo or picture opened in the browser window, just use the bookmarklet, instead of copying the address of the photo, opening the social network page and then somehow fumbling the link.
FB, VK, LJ and other examples of bookmarklets are usually in the help section. Odnoklassniki ( odnoklassniki.ru ) has neither an example on the web site, nor any examples at all in Google. Either this network is not needed by anyone, or no one uses bookmarklets for sharing content.
Since I did not find a single bookmarklet on the net, I decided to share my hand-made article (I took a bookmarklet for FB and remade it for Odnoklassniki).

javascript:(function()%20{window.open('http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl='%20+encodeURIComponent(location.href),'_blank',%20'width=550,height=350,location=no,toolbar=no,menubar=no,%20status=no,scrollbars=no,resizable=no');})() 

To use, you need to create a bookmark in the browser with this code in the address bar and optionally add it to the links bar. After that, selecting this bookmark on the page that you want to share in Odnoklassniki, a new window will open, where you can write a comment to the link and change the settings of the publication.
I hope someone will come in handy.

')

Source: https://habr.com/ru/post/174435/


All Articles