Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualfastcall22

Posted 21 January 2013 - 10:21 AM

Okay, I've made a greasemonkey script that seems to work on a variety of sites...
(function(){
    var $ = unsafeWindow.jQuery;
    if ( !$ )
        return;
    $('*[rel*=lightbox] img').each(function(){
        var a = $('<a>').attr('href',$(this).attr('src'));
        a.insertBefore($(this));
        $(this).detach();
        a.append($(this));
    });
    $('.lightview').removeClass('lightview');
    $('*[rel*=lightbox]').removeAttr('rel');
})();

#1fastcall22

Posted 10 November 2012 - 03:37 PM

Okay, I've made a greasemonkey script that seems to work on a variety of sites...
(function(){
    var $ = unsafeWindow.jQuery;
    if ( !$ )
        return;
    $('*[rel*=lightbox]').removeAttr('rel');
})();

PARTNERS