UserJS fix for that annoying LJ comments bug.

    Date: 08/21/05 (Opera Browser)    Keywords: browser, html

    You know how quick reply all of a suddenly stopped working? I stumbled across this fix in the Opera forums... It was originally written by one of the Russian users (username unknown), but I've tweaked it a bit for efficiency.

    Save as a plain text file with a .js extension and use as you would any UserJS file. (some instructions here.)

    // ==UserScript==
    // @name Fix the LJ comments form.
    // @author Michael Xeningem
    // @description Fix problem with comments in LiveJournal
    // @ujs:category browser: enhancements
    // @ujs:published 2005-07-20 22:00
    // @ujs:modified 2005-08-21 09:25
    // ==/UserScript==
    
    
    /* 
     * public domain
     */
    
    if(window.location.host.indexOf('livejournal\.com') != -1){ 
      window.addEventListener('load',function(e) {
        if (!document.getElementById("qrform")&&document.getElementById("qrformdiv")) {
          var qe = document.getElementById("qrformdiv");
          var fe = document.createElement("form");      
          if (fe) {
            fe.id = "qrform";
            fe.name="qrform";
            fe.method="POST";
            fe.action="http://www.livejournal.com/talkpost_do.bml";         
            fe.innerHTML =qe.innerHTML;
            qe.innerHTML = "";
            qe.appendChild(fe);
          }
        } 
      },false);
    }


    Only works in Opera 8, of course.

    Source: http://www.livejournal.com/community/opera_browser/39880.html

« v 8.02 on WinXP || Trouble with favicon »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home