Google "+1" buttons on Habr, user scripts and improved search for yourself and your circle
Continuing the month of Google+.
There are no Google buttons "+1" on Habré yet. But there would be a desire - they can be put and tested using a user script. The article shows how the "+1" buttons are set by the user script and how the Google search results change when you turn on the "+1" from your account.
(in the figure - this is not an installation, this is a really working script)
(see UPD3 with a newer HabrAjax user script for a site containing all the described functionality).
While the administration of Habr is in no hurry to put this button. In fact, there is something to think about. The Google button loads a lot of third-party script, making the page heavier. The button itself does not show its values immediately, but after 2-5 seconds, until the data is loaded (as many requests as there are buttons). Another 20 kilobyte (with ssl.gstatic.com) and 10 kilobyte from there are loaded to the basic 2 kilobyte function. 1 kb supercoded styles, very rich and abbreviated. And then, after a thorough arrangement of the entire economy on the page, comes JSON for 200 (at least) bytes, apparently with meaningful data. If now you open a browser with a dozen previously opened pages of the Habr, then these scripts are loaded into each of them. And it’s ok, they’ve just loaded - they are still executed in each window,
But we, nevertheless, will put these buttons for research purposes and see the results.
Install the habr script for google buttons "+1".
spmbt.kodingen.com/habrahabr/habracut06.user.js
This script contains many other extraneous actions - viewing Habr's articles without reloading the page, and is in beta state. But yesterday, he added the ability to put buttons "+1", and this is what is required of him.
Buttons appear both on individual pages, and on group pages, with a list of article titles, such as, for example, the Habr’s main page.
( Caution.In the future, this script will be improved. For example, now it loads Google+ scripts on any habra-pages. This is incorrect for the final result, but normal for beta, and will be improved soon. Therefore, if you no longer need the script, you should disable it in your browser settings (Add-ons, "Extensions", Manage Site Preferences and similar settings items for different browsers.) If you do not want to subsequently search for where to disable it, do not put it. )
If you need to update the script in the future, you need to do this after clearing the browser cache or adding an arbitrary new line to the URL (for example, "? 123") to bypass the caching.
For convenience, the user-style Habr Prettifier / spmbt is also installed., so the screenshots are non-standard, but without it everything will work, only they will differ significantly in appearance.
The user script is tested and works in Firefox 3.6 and 5.0, Chrome 12. It works, but cannot change state - in Opera. It can work, but not tested in Safari (you need to install it either through NinjaKit, or directly in the settings). For installation in Firefox - Greasemonkey or Scriptish plugin. For Chrome, plug-ins are not needed, just open the script and accept the installation.
For verification, we take the page with the article “Cross-domain AJAX request for Opera.” From 2008. Without the button installed, the ajax opera query searches for a link to it on page 10. Now turn on the user script, reload the page and see the "+1" button.
After installing the script at the end of the article, the +1 button is loaded in 3-4 seconds.
First, it is marked inactive. After clicking on it (check that the tooltip says exactly your Google+ account), it changes color.
(now the buttons have been reduced to the size of "small" and look like in the screenshot at the beginning of the article)
Click it, and after a few seconds we go to see the results. Our article is found on page 1 at about 7th place. We try a similar query: “opera query”. The result is in 6th place.
Disable "+1" and see what happened in the search for "opera request". When you log in without an account, the result is in 11th place, and when logging in, in the same 6th place. It’s not known whether the place is remembered due to the recent Google+ or for another reason (targeting). For example, after disabling "+1", the request "ajax opera" again failed to respond to page 10.
Similar experiments with other buttons showed that on request from the header words, we almost always see pages marked by us in the output, unless the query words are very general. It can be expected that marks of people from their circles will also be shown in the SERPs as their own or almost as their own.
If we take very general words, then we don’t find our “+1” in the SERP - millions of words “ajax” or “opera” individually - win.
While in Firefox and Chrome the script runs and performs all the functions, in Opera it also launches, but when you try to mark "+1" the icon turns red, with a hint that some kind of error has occurred. We write this to the unusual and unpredictability of the manufacturer of this method of installing the script, as through a user script. (The launch in Chrome also did not happen right away.) Moreover, we know how Google relates to Opera. :)
I conducted a simple experiment, the results of which were puzzling. Having marked "+1" on a completely normal site (not on Habré), I did not see a quick reaction to my "+1" when logging in without an account or under another account. That is, when a button for itself reacts instantly, for outsiders, this reaction, at least, slows down.
For Habr, respectively - the same story. Noted under his account - excellent, and the search results immediately changed. Disconnected - everything returned back. But it’s worth looking under a different account - there is not 1 notifier, but 0.
I don’t have a second Google+ account, so I can’t say what will happen if a person from my circle looks at the mark. This question is very interesting, and it is after a positive answer to it that you can make far-reaching positive conclusions - use the buttons to search for content by a group of people in a common circle. There will probably be enthusiasts who agree to join my circle for search experiments using words such as "web programming, CSS" and add me to the circle themselves, and then we'll discuss the results on Google+.
Account to connect to your circles: gplus.to/spmbt . Request: do not connect for anything other than web development and programming, an account is created just for this :).
It turns out that links that are not very recessed in this search query (2-10 pages) rise very well to the 1st page if you marked it. Links that are already on the 1st page of the search are raised slightly. The rise occurs instantly, without spider crawl pages "somewhere in a week." Therefore, with these buttons it will be convenient to raise your search ranking for the pages viewed.
Will this work if a friend from Google+’s circle noted? Google claims that this is exactly what the technology was developed for. However, there is some confusion due to the fact that grades for people not from the circle are taken into account, at least not immediately. Perhaps this is the cost of new technology. Perhaps - the time necessary for processing.
Thus, if some society of people with common interests gathers on Habré, not even having invitations to Habré, but located in adjacent circles on Google+, then their article marks will be much more relevant than the rest. So, you can experiment with a set of communities in circles with common interests, for example, programming. A person starts an account on Google with the purpose of marking exclusively for work, enters into the circles of “right people”, and the result is a powerful search engine from the marks of those people you trust.
Further, the user marks the pages that interest him, and later, by searching for relevant words, he easily finds these pages. Friends of his circle also help to search for useful pages.
If the sites do not yet have a Google+ button, the script is quite easily expanded to appear on every site at all. (Greasemonkey has a “script command” menu, in which you can enter "+1" for each site.) The question remains as to whether the current button will greatly load the computer with its work on each page.
Of course, this is roulette, which now works, because it is not clogged with advertising and other search engine policies, but it's worth a try.
UPD (19:00): Added a small update to the script, which will allow watching the number "+1" on a non-group page. It turned out (from experience) that the “href” parameter is very important for this, so that it is the same for all the buttons that we want to see the same.
It does not affect anything other than a single page. Who wants to - update the script (not forgetting about caching or "? 123").
I opened my "+1" on my account , so that anyone can see if it affects the issue, if I am in his circle or not. Who else will open their “+1” for this purpose? Unsubscribe, please, I want to check.
FAQ for the +1 button: www.google.com/intl/en/webmasters/+1/button .
A bit off topic:
UPD2 (11:00, next day, July 14): Fixed a bug caused by the absence of the author of a post on Habré (the error case was provided this morning by the post habrahabr.ru/company/google/blog/124115 ), update the script .
1) It seems that we need a script that will work on the “likes” of various services and provide the user with only those with which he works (and if he wants to describe the merits of others so that he can connect). For example, for Habr, this means that if they don’t use Twitter, the “t” buttons disappear, and if they use LinkedIn, its button appears in place of the “likes”.
2) Favorites - a kind of "like";
3) if the likes are one per page, then they can be outside the page, like a button on the browser interface (approximately as done in that “+1” plugin for Chrome);
4) if the like links are not equal to the page link, this should be taken into account by the plugin.
UPD3 , a few months later, 02.28.12: approximately from mid-December 2011HabrAjax user script for all modern browsers, which enables or disables the loading of Google+ buttons in its settings.
There are no Google buttons "+1" on Habré yet. But there would be a desire - they can be put and tested using a user script. The article shows how the "+1" buttons are set by the user script and how the Google search results change when you turn on the "+1" from your account.
(in the figure - this is not an installation, this is a really working script)
(see UPD3 with a newer HabrAjax user script for a site containing all the described functionality).
While the administration of Habr is in no hurry to put this button. In fact, there is something to think about. The Google button loads a lot of third-party script, making the page heavier. The button itself does not show its values immediately, but after 2-5 seconds, until the data is loaded (as many requests as there are buttons). Another 20 kilobyte (with ssl.gstatic.com) and 10 kilobyte from there are loaded to the basic 2 kilobyte function. 1 kb supercoded styles, very rich and abbreviated. And then, after a thorough arrangement of the entire economy on the page, comes JSON for 200 (at least) bytes, apparently with meaningful data. If now you open a browser with a dozen previously opened pages of the Habr, then these scripts are loaded into each of them. And it’s ok, they’ve just loaded - they are still executed in each window,
But we, nevertheless, will put these buttons for research purposes and see the results.
Download the experimental script
Install the habr script for google buttons "+1".
spmbt.kodingen.com/habrahabr/habracut06.user.js
This script contains many other extraneous actions - viewing Habr's articles without reloading the page, and is in beta state. But yesterday, he added the ability to put buttons "+1", and this is what is required of him.
Buttons appear both on individual pages, and on group pages, with a list of article titles, such as, for example, the Habr’s main page.
( Caution.In the future, this script will be improved. For example, now it loads Google+ scripts on any habra-pages. This is incorrect for the final result, but normal for beta, and will be improved soon. Therefore, if you no longer need the script, you should disable it in your browser settings (Add-ons, "Extensions", Manage Site Preferences and similar settings items for different browsers.) If you do not want to subsequently search for where to disable it, do not put it. )
If you need to update the script in the future, you need to do this after clearing the browser cache or adding an arbitrary new line to the URL (for example, "? 123") to bypass the caching.
For convenience, the user-style Habr Prettifier / spmbt is also installed., so the screenshots are non-standard, but without it everything will work, only they will differ significantly in appearance.
The user script is tested and works in Firefox 3.6 and 5.0, Chrome 12. It works, but cannot change state - in Opera. It can work, but not tested in Safari (you need to install it either through NinjaKit, or directly in the settings). For installation in Firefox - Greasemonkey or Scriptish plugin. For Chrome, plug-ins are not needed, just open the script and accept the installation.
Checking the operation of the button on the Habré with the Google search engine
For verification, we take the page with the article “Cross-domain AJAX request for Opera.” From 2008. Without the button installed, the ajax opera query searches for a link to it on page 10. Now turn on the user script, reload the page and see the "+1" button.
After installing the script at the end of the article, the +1 button is loaded in 3-4 seconds.
First, it is marked inactive. After clicking on it (check that the tooltip says exactly your Google+ account), it changes color.
(now the buttons have been reduced to the size of "small" and look like in the screenshot at the beginning of the article)
Click it, and after a few seconds we go to see the results. Our article is found on page 1 at about 7th place. We try a similar query: “opera query”. The result is in 6th place.
Disable "+1" and see what happened in the search for "opera request". When you log in without an account, the result is in 11th place, and when logging in, in the same 6th place. It’s not known whether the place is remembered due to the recent Google+ or for another reason (targeting). For example, after disabling "+1", the request "ajax opera" again failed to respond to page 10.
Similar experiments with other buttons showed that on request from the header words, we almost always see pages marked by us in the output, unless the query words are very general. It can be expected that marks of people from their circles will also be shown in the SERPs as their own or almost as their own.
If we take very general words, then we don’t find our “+1” in the SERP - millions of words “ajax” or “opera” individually - win.
Work at the Opera
While in Firefox and Chrome the script runs and performs all the functions, in Opera it also launches, but when you try to mark "+1" the icon turns red, with a hint that some kind of error has occurred. We write this to the unusual and unpredictability of the manufacturer of this method of installing the script, as through a user script. (The launch in Chrome also did not happen right away.) Moreover, we know how Google relates to Opera. :)
Will their marks be visible to outsiders and how quickly?
I conducted a simple experiment, the results of which were puzzling. Having marked "+1" on a completely normal site (not on Habré), I did not see a quick reaction to my "+1" when logging in without an account or under another account. That is, when a button for itself reacts instantly, for outsiders, this reaction, at least, slows down.
For Habr, respectively - the same story. Noted under his account - excellent, and the search results immediately changed. Disconnected - everything returned back. But it’s worth looking under a different account - there is not 1 notifier, but 0.
I don’t have a second Google+ account, so I can’t say what will happen if a person from my circle looks at the mark. This question is very interesting, and it is after a positive answer to it that you can make far-reaching positive conclusions - use the buttons to search for content by a group of people in a common circle. There will probably be enthusiasts who agree to join my circle for search experiments using words such as "web programming, CSS" and add me to the circle themselves, and then we'll discuss the results on Google+.
Account to connect to your circles: gplus.to/spmbt . Request: do not connect for anything other than web development and programming, an account is created just for this :).
Conclusions.
It turns out that links that are not very recessed in this search query (2-10 pages) rise very well to the 1st page if you marked it. Links that are already on the 1st page of the search are raised slightly. The rise occurs instantly, without spider crawl pages "somewhere in a week." Therefore, with these buttons it will be convenient to raise your search ranking for the pages viewed.
Will this work if a friend from Google+’s circle noted? Google claims that this is exactly what the technology was developed for. However, there is some confusion due to the fact that grades for people not from the circle are taken into account, at least not immediately. Perhaps this is the cost of new technology. Perhaps - the time necessary for processing.
Thus, if some society of people with common interests gathers on Habré, not even having invitations to Habré, but located in adjacent circles on Google+, then their article marks will be much more relevant than the rest. So, you can experiment with a set of communities in circles with common interests, for example, programming. A person starts an account on Google with the purpose of marking exclusively for work, enters into the circles of “right people”, and the result is a powerful search engine from the marks of those people you trust.
Further, the user marks the pages that interest him, and later, by searching for relevant words, he easily finds these pages. Friends of his circle also help to search for useful pages.
If the sites do not yet have a Google+ button, the script is quite easily expanded to appear on every site at all. (Greasemonkey has a “script command” menu, in which you can enter "+1" for each site.) The question remains as to whether the current button will greatly load the computer with its work on each page.
Of course, this is roulette, which now works, because it is not clogged with advertising and other search engine policies, but it's worth a try.
UPD (19:00): Added a small update to the script, which will allow watching the number "+1" on a non-group page. It turned out (from experience) that the “href” parameter is very important for this, so that it is the same for all the buttons that we want to see the same.
It does not affect anything other than a single page. Who wants to - update the script (not forgetting about caching or "? 123").
I opened my "+1" on my account , so that anyone can see if it affects the issue, if I am in his circle or not. Who else will open their “+1” for this purpose? Unsubscribe, please, I want to check.
FAQ for the +1 button: www.google.com/intl/en/webmasters/+1/button .
A bit off topic:
UPD2 (11:00, next day, July 14): Fixed a bug caused by the absence of the author of a post on Habré (the error case was provided this morning by the post habrahabr.ru/company/google/blog/124115 ), update the script .
1) It seems that we need a script that will work on the “likes” of various services and provide the user with only those with which he works (and if he wants to describe the merits of others so that he can connect). For example, for Habr, this means that if they don’t use Twitter, the “t” buttons disappear, and if they use LinkedIn, its button appears in place of the “likes”.
2) Favorites - a kind of "like";
3) if the likes are one per page, then they can be outside the page, like a button on the browser interface (approximately as done in that “+1” plugin for Chrome);
4) if the like links are not equal to the page link, this should be taken into account by the plugin.
UPD3 , a few months later, 02.28.12: approximately from mid-December 2011HabrAjax user script for all modern browsers, which enables or disables the loading of Google+ buttons in its settings.