Skip to content

Instantly share code, notes, and snippets.

@son0fhobs
Last active August 29, 2015 14:12

Revisions

  1. son0fhobs revised this gist Jun 2, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion putlocker.is
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    // more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/4/
    // more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/5/

    /*

  2. son0fhobs revised this gist Jun 2, 2015. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    // more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/
    // more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/4/

    /*

    @@ -7,7 +7,8 @@
    // if nothing else, color background black.
    // find table elements as well.

    Bookmarklet: javascript:(function()%7Bif(typeof jQuery!%3D%3D'function')%7Bvar url%3D'%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js'%3Bvar script%3Ddocument.createElement('script')%3Bscript.src%3Durl%3Bvar head%3Ddocument.getElementsByTagName('head')%5B0%5D%3Bhead.appendChild(script)%3Bscript.onload%3DjqueryLoaded%7Delse%7BjqueryLoaded()%7Dfunction jqueryLoaded()%7B%24%3DjQuery%3Bconsole.log('Make sure you start the video first%2C remove ads. Try to select ads if not in iframe')%3Bvar video_selector%3D''%3Bvar video_selectors%3D%5B'%23videoPlayer'%2C'.video'%2C'%23video'%5D%3Bvar %24video%3D''%3Bif(document.location.hostname%3D%3D'putlocker.is'%26%26%24('.video').length)%7B%24video%3D%24('.video')%3Bconsole.log('is putlocker')%3B_adr%3Dnull%3BantiClickjack%3Dnull%7Delse if(%24(video_selector).length)%7B%24video%3D%24(video_selector)%3Bremove_ads()%7Delse%7B%24video%3Dfind_common_selectors(video_selectors)%3Bif(!%24video)%7B%24video%3Dfind_objects_iframes()%3Bremove_ads()%7D%7Dif(!%24video)%7Balert('no video selector element found')%7Delse%7Bshow_only_video(%24video)%7Dremove_putlocker_overlay()%7Dfunction find_common_selectors(video_selectors)%7Bvar %24video%3D''%3Bfor(i%3D0%3Bi<video_selectors.length%3Bi%2B%2B)%7Bif(%24(video_selectors%5Bi%5D).length)%7B%24video%3D%24(video_selectors%5Bi%5D)%3Breturn %24video%3Bbreak%7D%7Dreturn%7Dfunction find_objects_iframes()%7Bvar %24objects%3D''%3Bvar %24iframes%3D''%3Bif(%24('iframe').length)%7B%24iframes%3D%24('iframe')%3Bif(typeof %24iframes%3D%3D%3D'object'%26%26%24iframes.length>1)%7B%24.grep(%24iframes%2Cfunction(elem%2Ci)%7Bif(%24(elem).attr('src')!%3D%3D'undefined')%7Bif(%24(elem).attr('src').indexOf('ads')%7C%7C%24(elem).attr('src').indexOf('facebook')%7C%7C%24(elem).attr('src').indexOf('addthis'))%7Breturn false%7D%7D%7D)%7D%24video%3D%24iframes%3Breturn %24iframes%7Delse if(%24('object').length)%7B%24objects%3D%24('object')%7Dif(%24('embed').length)%7B%24objects%3D%24('embed')%7Delse%7Bconsole.log('No iframes or objects found on page')%7Dreturn %24objects%7Dfunction show_only_video(%24video)%7B%24body_children%3D%24('body').children()%3B%24body_children.remove()%3B%24video.appendTo('body')%3B%24('body').css(%7B'background'%3A'%23111'%2C'text-align'%3A'center'%2C'margin'%3A'100px'%7D)%3B%24video.css(%7B'border'%3A'1px solid %23000'%2C'box-shadow'%3A'2px 2px 8px %23000%2C 1px 1px 20px %23040404'%2C'margin'%3A'auto'%7D)%3B%24('html').css(%7B'box-shadow'%3A'1px 1px 2px %23000 inset'%7D)%7Dfunction remove_putlocker_overlay()%7B%24('object').remove()%7Dfunction remove_ads()%7Bvar ad_selectors%3D%5B'.ads'%5D%3B%24(ad_selectors).css('border'%2C'1px solid %2333e')%3BsetTimeout(function()%7B%24(ad_selectors).remove()%7D%2C1500)%7D%7D)()
    Bookmarklet:
    javascript:(function()%7Bif(typeof jQuery!%3D%3D'function')%7Bvar url%3D'%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js'%3Bvar script%3Ddocument.createElement('script')%3Bscript.src%3Durl%3Bvar head%3Ddocument.getElementsByTagName('head')%5B0%5D%3Bhead.appendChild(script)%3Bscript.onload%3DjqueryLoaded%7Delse%7BjqueryLoaded()%7Dfunction jqueryLoaded()%7B%24%3DjQuery%3Bconsole.log('Make sure you start the video first%2C remove ads. Try to select ads if not in iframe')%3Bvar video_selector%3D''%3Bvar video_selectors%3D%5B'%23videoPlayer'%2C'.video'%2C'%23video'%5D%3Bvar %24video%3D''%3Bif(document.location.hostname%3D%3D'putlocker.is'%26%26%24('.video').length)%7B%24video%3D%24('.video')%3Bconsole.log('is putlocker')%3B_adr%3Dnull%3BantiClickjack%3Dnull%7Delse if(%24(video_selector).length)%7B%24video%3D%24(video_selector)%3Bremove_ads()%7Delse%7B%24video%3Dfind_common_selectors(video_selectors)%3Bif(!%24video)%7B%24video%3Dfind_objects_iframes()%3Bremove_ads()%7D%7Dif(!%24video)%7Balert('no video selector element found')%7Delse%7Bshow_only_video(%24video)%7Dremove_putlocker_overlay()%7Dfunction find_common_selectors(video_selectors)%7Bvar %24video%3D''%3Bfor(i%3D0%3Bi<video_selectors.length%3Bi%2B%2B)%7Bif(%24(video_selectors%5Bi%5D).length)%7B%24video%3D%24(video_selectors%5Bi%5D)%3Breturn %24video%3Bbreak%7D%7Dreturn%7Dfunction find_objects_iframes()%7Bvar %24objects%3D''%3Bvar %24iframes%3D''%3Bif(%24('iframe').length)%7B%24iframes%3D%24('iframe')%3Bif(typeof %24iframes%3D%3D%3D'object'%26%26%24iframes.length>1)%7B%24.grep(%24iframes%2Cfunction(elem%2Ci)%7Bif(%24(elem).attr('src')!%3D%3D'undefined')%7Bif(%24(elem).attr('src').indexOf('ads')%7C%7C%24(elem).attr('src').indexOf('facebook')%7C%7C%24(elem).attr('src').indexOf('addthis'))%7Breturn false%7D%7D%7D)%7D%24video%3D%24iframes%3Breturn %24iframes%7Delse if(%24('object').length)%7B%24objects%3D%24('object')%7Dif(%24('embed').length)%7B%24objects%3D%24('embed')%7Delse%7Bconsole.log('No iframes or objects found on page')%7Dreturn %24objects%7Dfunction show_only_video(%24video)%7B%24body_children%3D%24('body').children()%3B%24body_children.remove()%3B%24video.appendTo('body')%3B%24('body').css(%7B'background'%3A'%23111'%2C'text-align'%3A'center'%2C'margin'%3A'100px'%7D)%3B%24video.css(%7B'border'%3A'1px solid %23000'%2C'box-shadow'%3A'2px 2px 8px %23000%2C 1px 1px 20px %23040404'%2C'margin'%3A'auto'%7D)%3B%24('html').css(%7B'box-shadow'%3A'1px 1px 2px %23000 inset'%7D)%7Dfunction remove_putlocker_overlay()%7B%24('object').remove()%7Dfunction remove_ads()%7Bvar ad_selectors%3D%5B'.ads'%5D%3B%24(ad_selectors).css('border'%2C'1px solid %2333e')%3BsetTimeout(function()%7B%24(ad_selectors).remove()%7D%2C1500)%7D%7D)()

    if(typeof jQuery !== 'function'){
    var url = '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js';
  3. son0fhobs revised this gist Jun 1, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,8 @@
    // if nothing else, color background black.
    // find table elements as well.

    Bookmarklet: javascript:(function()%7Bif(typeof jQuery!%3D%3D'function')%7Bvar url%3D'%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js'%3Bvar script%3Ddocument.createElement('script')%3Bscript.src%3Durl%3Bvar head%3Ddocument.getElementsByTagName('head')%5B0%5D%3Bhead.appendChild(script)%3Bscript.onload%3DjqueryLoaded%7Delse%7BjqueryLoaded()%7Dfunction jqueryLoaded()%7B%24%3DjQuery%3Bconsole.log('Make sure you start the video first%2C remove ads. Try to select ads if not in iframe')%3Bvar video_selector%3D''%3Bvar video_selectors%3D%5B'%23videoPlayer'%2C'.video'%2C'%23video'%5D%3Bvar %24video%3D''%3Bif(document.location.hostname%3D%3D'putlocker.is'%26%26%24('.video').length)%7B%24video%3D%24('.video')%3Bconsole.log('is putlocker')%3B_adr%3Dnull%3BantiClickjack%3Dnull%7Delse if(%24(video_selector).length)%7B%24video%3D%24(video_selector)%3Bremove_ads()%7Delse%7B%24video%3Dfind_common_selectors(video_selectors)%3Bif(!%24video)%7B%24video%3Dfind_objects_iframes()%3Bremove_ads()%7D%7Dif(!%24video)%7Balert('no video selector element found')%7Delse%7Bshow_only_video(%24video)%7Dremove_putlocker_overlay()%7Dfunction find_common_selectors(video_selectors)%7Bvar %24video%3D''%3Bfor(i%3D0%3Bi<video_selectors.length%3Bi%2B%2B)%7Bif(%24(video_selectors%5Bi%5D).length)%7B%24video%3D%24(video_selectors%5Bi%5D)%3Breturn %24video%3Bbreak%7D%7Dreturn%7Dfunction find_objects_iframes()%7Bvar %24objects%3D''%3Bvar %24iframes%3D''%3Bif(%24('iframe').length)%7B%24iframes%3D%24('iframe')%3Bif(typeof %24iframes%3D%3D%3D'object'%26%26%24iframes.length>1)%7B%24.grep(%24iframes%2Cfunction(elem%2Ci)%7Bif(%24(elem).attr('src')!%3D%3D'undefined')%7Bif(%24(elem).attr('src').indexOf('ads')%7C%7C%24(elem).attr('src').indexOf('facebook')%7C%7C%24(elem).attr('src').indexOf('addthis'))%7Breturn false%7D%7D%7D)%7D%24video%3D%24iframes%3Breturn %24iframes%7Delse if(%24('object').length)%7B%24objects%3D%24('object')%7Dif(%24('embed').length)%7B%24objects%3D%24('embed')%7Delse%7Bconsole.log('No iframes or objects found on page')%7Dreturn %24objects%7Dfunction show_only_video(%24video)%7B%24body_children%3D%24('body').children()%3B%24body_children.remove()%3B%24video.appendTo('body')%3B%24('body').css(%7B'background'%3A'%23111'%2C'text-align'%3A'center'%2C'margin'%3A'100px'%7D)%3B%24video.css(%7B'border'%3A'1px solid %23000'%2C'box-shadow'%3A'2px 2px 8px %23000%2C 1px 1px 20px %23040404'%2C'margin'%3A'auto'%7D)%3B%24('html').css(%7B'box-shadow'%3A'1px 1px 2px %23000 inset'%7D)%7Dfunction remove_putlocker_overlay()%7B%24('object').remove()%7Dfunction remove_ads()%7Bvar ad_selectors%3D%5B'.ads'%5D%3B%24(ad_selectors).css('border'%2C'1px solid %2333e')%3BsetTimeout(function()%7B%24(ad_selectors).remove()%7D%2C1500)%7D%7D)()

    if(typeof jQuery !== 'function'){
    var url = '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js';
    var script = document.createElement('script');
  4. son0fhobs revised this gist May 11, 2015. 1 changed file with 16 additions and 0 deletions.
    16 changes: 16 additions & 0 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -41,6 +41,7 @@ function jqueryLoaded(){
    $video = find_objects_iframes();
    remove_ads();
    }
    remove_overlayed_elems();
    }

    if(!$video){
    @@ -52,6 +53,15 @@ function jqueryLoaded(){

    }

    // remove overlayed/fixed elems in case doesn't fix everything else
    function remove_overlayed_elems(){
    $('*').each(function(){
    if($(this).css('position') == 'fixed'){
    $(this).remove();
    }
    });
    }


    function find_common_selectors(video_selectors){
    var $video = '';
    @@ -113,6 +123,12 @@ function remove_ads(){
    }, 1500);
    }

    function add_all_elems_back($video){
    $video.remove();
    $('body').css({'margin':'0'});
    $('html').css({'box-shadow':'none'});
    $body_children.appendTo('body');
    }

    */

  5. son0fhobs revised this gist Apr 14, 2015. 1 changed file with 54 additions and 34 deletions.
    88 changes: 54 additions & 34 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -1,46 +1,58 @@
    // more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/

    // jquery bookmarklet
    javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.9.1",function($,L){$video=$('.video');$('body').children().remove();$video.appendTo('body');$('body').css({'background':'#111','text-align':'center','margin':'100px'});$('iframe').css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});$('html').css({'box-shadow':'1px 1px 2px #000 inset'});_adr=null;antiClickjack=null;});

    /* All below information is for further testing, development, and non-compressed code */

    /*

    // not working - used to filter out social iframes
    if($(elem).attr('title') && ~$(elem).attr('title').indexOf('facebook') || ~$(elem).attr('title').indexOf('social')){
    return false;
    }else if($(elem).attr('src').indexOf('ads')){
    return false;
    }else{
    return true;
    }

    // filtering iframes
    // jquerify include? - make bookmarklet

    $=jQuery;
    // variable selector for grabbing ads, extra iframes?
    // prompt for selector. Button to add back all elements and try again?
    // if nothing else, color background black.
    // find table elements as well.

    if(typeof jQuery !== 'function'){
    var url = '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js';
    var script = document.createElement('script');
    script.src = url;
    var head = document.getElementsByTagName('head')[0];
    head.appendChild(script);
    script.onload = jqueryLoaded;
    }else{
    jqueryLoaded();
    }

    console.log('Make sure you start the video first, remove ads. Try to select ads if not in iframe');
    var video_selector = '#videoPlayer';
    var video_selectors = ['#videoPlayer', '.filminfo3 iframe'];
    function jqueryLoaded(){

    var $video = '';
    if($(video_selector).length){
    $video = $(video_selector);
    }else{
    $video = find_common_selectors(video_selectors);
    $=jQuery;

    console.log('Make sure you start the video first, remove ads. Try to select ads if not in iframe');
    var video_selector = '';
    var video_selectors = ['#videoPlayer', '.video', '#video'];

    var $video = '';
    if(document.location.hostname == 'putlocker.is' && $('.video').length){
    $video = $('.video');
    console.log('is putlocker');
    _adr = null;
    antiClickjack = null;
    }else if($(video_selector).length){
    $video = $(video_selector);
    remove_ads();
    }else{
    $video = find_common_selectors(video_selectors);
    if(!$video){
    $video = find_objects_iframes();
    remove_ads();
    }
    }

    if(!$video){
    $video = find_objects_iframes();
    alert('no video selector element found');
    // add prompt to add? Or force add to gist?
    }else{
    show_only_video($video);
    }
    }
    if(!$video){
    alert('no video selector element found');
    // add prompt to add? Or force add to gist?
    }else{
    show_only_video($video);

    }


    function find_common_selectors(video_selectors){
    var $video = '';
    for(i=0;i<video_selectors.length;i++){
    @@ -85,13 +97,21 @@ function find_objects_iframes(){


    function show_only_video($video){
    $('body').children().remove();
    $body_children = $('body').children(); // allow to add back if necessary
    $body_children.remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    $video.css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404', 'margin':'auto'});
    $('html').css({'box-shadow':'1px 1px 2px #000 inset'});
    }

    function remove_ads(){
    var ad_selectors = ['.ads'];
    $(ad_selectors).css('border', '1px solid #33e');
    setTimeout(function(){
    $(ad_selectors).remove();
    }, 1500);
    }


    */
  6. son0fhobs revised this gist Apr 14, 2015. 1 changed file with 71 additions and 25 deletions.
    96 changes: 71 additions & 25 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -17,36 +17,82 @@ javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a
    }

    // filtering iframes
    // jquerify include? - make bookmarklet

    $=jQuery;
    if($('iframe').length){
    $iframes = $('iframe');
    if(typeof $iframes === 'object' && $iframes.length > 1){
    $.grep($iframes, function(elem, i){
    // attr not working...
    if($(elem).attr('src') !== 'undefined'){
    if($(elem).attr('src').indexOf('ads') || $(elem).attr('src').indexOf('facebook') || $(elem).attr('src').indexOf('addthis')){
    return false;
    }
    }
    });

    console.log('Make sure you start the video first, remove ads. Try to select ads if not in iframe');
    var video_selector = '#videoPlayer';
    var video_selectors = ['#videoPlayer', '.filminfo3 iframe'];

    var $video = '';
    if($(video_selector).length){
    $video = $(video_selector);
    }else{
    $video = find_common_selectors(video_selectors);
    if(!$video){
    $video = find_objects_iframes();
    }
    $video = $iframes;
    }else if($('object').length){
    $video = $('object');
    }if($('embed').length){
    $video = $('embed');
    }
    if(!$video){
    alert('no video selector element found');
    // add prompt to add? Or force add to gist?
    }else{
    console.log('No iframes or objects found on page');
    show_only_video($video);
    }

    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    $video.css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});
    $('html').css({'box-shadow':'1px 1px 2px #000 inset'});
    _adr = null;
    antiClickjack = null;
    function find_common_selectors(video_selectors){
    var $video = '';
    for(i=0;i<video_selectors.length;i++){
    if($(video_selectors[i]).length){
    $video = $(video_selectors[i]);
    return $video;
    break;
    }
    }
    return;
    }


    function find_objects_iframes(){
    var $objects = '';
    var $iframes = '';

    if($('iframe').length){
    $iframes = $('iframe');
    if(typeof $iframes === 'object' && $iframes.length > 1){
    $.grep($iframes, function(elem, i){
    // attr not working...
    if($(elem).attr('src') !== 'undefined'){
    if($(elem).attr('src').indexOf('ads') || $(elem).attr('src').indexOf('facebook') || $(elem).attr('src').indexOf('addthis')){
    return false;
    }

    }
    });
    }
    $video = $iframes;
    return $iframes;
    }else if($('object').length){
    $objects = $('object');
    }if($('embed').length){
    $objects = $('embed');
    }else{
    console.log('No iframes or objects found on page');
    }
    return $objects;
    }


    function show_only_video($video){
    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    $video.css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404', 'margin':'auto'});
    $('html').css({'box-shadow':'1px 1px 2px #000 inset'});
    }



    */

  7. son0fhobs revised this gist Mar 15, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -34,6 +34,8 @@ if($('iframe').length){
    $video = $iframes;
    }else if($('object').length){
    $video = $('object');
    }if($('embed').length){
    $video = $('embed');
    }else{
    console.log('No iframes or objects found on page');
    }
  8. son0fhobs revised this gist Mar 15, 2015. 1 changed file with 43 additions and 0 deletions.
    43 changes: 43 additions & 0 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,49 @@ javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a

    /* All below information is for further testing, development, and non-compressed code */

    /*

    // not working - used to filter out social iframes
    if($(elem).attr('title') && ~$(elem).attr('title').indexOf('facebook') || ~$(elem).attr('title').indexOf('social')){
    return false;
    }else if($(elem).attr('src').indexOf('ads')){
    return false;
    }else{
    return true;
    }

    // filtering iframes
    $=jQuery;
    if($('iframe').length){
    $iframes = $('iframe');
    if(typeof $iframes === 'object' && $iframes.length > 1){
    $.grep($iframes, function(elem, i){
    // attr not working...
    if($(elem).attr('src') !== 'undefined'){
    if($(elem).attr('src').indexOf('ads') || $(elem).attr('src').indexOf('facebook') || $(elem).attr('src').indexOf('addthis')){
    return false;
    }

    }
    });
    }
    $video = $iframes;
    }else if($('object').length){
    $video = $('object');
    }else{
    console.log('No iframes or objects found on page');
    }

    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    $video.css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});
    $('html').css({'box-shadow':'1px 1px 2px #000 inset'});
    _adr = null;
    antiClickjack = null;

    */

    // first jqueryify, then this the actual code used
    $=jQuery
    $video = $('.filminfo3 iframe').eq(1);
  9. son0fhobs revised this gist Mar 14, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -7,11 +7,11 @@ javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a

    // first jqueryify, then this the actual code used
    $=jQuery
    $video = $('.video');
    $video = $('.filminfo3 iframe').eq(1);
    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    $('iframe').css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});
    $video.css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});
    $('html').css({'box-shadow':'1px 1px 2px #000 inset'});
    _adr = null;
    antiClickjack = null;
  10. son0fhobs revised this gist Jan 7, 2015. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion putlocker.is
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/

    // jquery bookmarklet
    javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.7.1",function($,L){$video=$(".video");$("body").children().remove();$video.appendTo("body");$("body").css({background:"#555","text-align":"center",margin:"100px"});_adr=null;antiClickjack=null;});
    javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.9.1",function($,L){$video=$('.video');$('body').children().remove();$video.appendTo('body');$('body').css({'background':'#111','text-align':'center','margin':'100px'});$('iframe').css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});$('html').css({'box-shadow':'1px 1px 2px #000 inset'});_adr=null;antiClickjack=null;});

    /* All below information is for further testing, development, and non-compressed code */

    @@ -11,9 +11,12 @@ $video = $('.video');
    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    $('iframe').css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});
    $('html').css({'box-shadow':'1px 1px 2px #000 inset'});
    _adr = null;
    antiClickjack = null;

    // js compression: http://javascriptcompressor.com/
    // generated here: http://benalman.com/code/test/jquery-run-code-bookmarklet/
    // Use this for overly thorough jquery bookmarklet - http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/

    @@ -31,6 +34,8 @@ antiClickjack = null;
    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    $('iframe').css({'border':'1px solid #000','box-shadow':'2px 2px 8px #000, 1px 1px 20px #040404'});
    $('html').css({'box-shadow':'1px 1px 2px #000 inset'});
    _adr = null;
    antiClickjack = null;
    }
  11. son0fhobs revised this gist Jan 1, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions putlocker.is
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    // more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/

    // jquery bookmarklet
    javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.7.1",function($,L){$video=$(".video");$("body").children().remove();$video.appendTo("body");$("body").css({background:"#555","text-align":"center",margin:"100px"});_adr=null;antiClickjack=null;});

  12. son0fhobs renamed this gist Dec 25, 2014. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions gistfile1.txt → putlocker.is
    Original file line number Diff line number Diff line change
    @@ -24,8 +24,6 @@ antiClickjack = null;
    head.appendChild(script);

    function jqueryLoaded(){
    console.log('am I running?');
    console.log(jQuery);
    $=jQuery
    $video = $('.video');
    $('body').children().remove();
  13. son0fhobs created this gist Dec 25, 2014.
    41 changes: 41 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    // jquery bookmarklet
    javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.7.1",function($,L){$video=$(".video");$("body").children().remove();$video.appendTo("body");$("body").css({background:"#555","text-align":"center",margin:"100px"});_adr=null;antiClickjack=null;});

    /* All below information is for further testing, development, and non-compressed code */

    // first jqueryify, then this the actual code used
    $=jQuery
    $video = $('.video');
    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    _adr = null;
    antiClickjack = null;

    // generated here: http://benalman.com/code/test/jquery-run-code-bookmarklet/
    // Use this for overly thorough jquery bookmarklet - http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/

    // full version with jQuery or $ being universal for easy working with
    var url = '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js';
    var script = document.createElement('script');
    script.src = url;
    var head = document.getElementsByTagName('head')[0];
    script.onload = jqueryLoaded;
    head.appendChild(script);

    function jqueryLoaded(){
    console.log('am I running?');
    console.log(jQuery);
    $=jQuery
    $video = $('.video');
    $('body').children().remove();
    $video.appendTo('body');
    $('body').css({'background':'#111', 'text-align':'center', 'margin':'100px'});
    _adr = null;
    antiClickjack = null;
    }


    var head = document.getElementsByTagName("head")[0], done = false;
    var script = document.createElement("script");
    script.src = url;