Recent posts by Thadk

Subscribe to Recent posts by Thadk 3 posts found

Aug 28, 2008
Thadk 3 posts

Topic: Script development / Switcheroo in Google Reader

I use the Gears Offline feature of Google Reader on a daily basis. I would like to change the hardcoded value of 2000 snippets to take offline. I have succeeded in doing this by overriding the function containing the value but Google Reader code is tricky and every time it is recompiled they reobfuscate and rename all the functions.

I need some way to either regex all the code (huge codebase) changing a specific "2000" efficiently or a way to reliably drill down to that function to replace it. I have tried to uneval the code on a function-by-function basis in unsafewindow but it is far too slow.

The Google Reader Prefetch More http://userscripts.org/scripts/show/26383 script seems to have found a way to drill down like this in an efficient way but my function seems more difficult.

Here is the function that needs to be overloaded from the main script ######_en_scroll.js in Greader:

LJ = "Downloading %1 items...",
MJ = "Offline mode is already enabled.";
function NJ() {
    if (YI) return;
    CJ();
    OJ(true);
    PJ(function(a) {
        if (a) QJ(false)
    });
    Ur(function(a) {
        if (!a) {
            RJ();
            return
        } else {
            JJ.w(I(LJ, 2000));
            Vm(function(b) {
                if (b) {
                    Q(MJ, Pr);
                    VI.close();
                    return
                }
                YH.getPermission();
                SJ();
                YI = true;
                DJ = gk();
                jJ(b);
                try {
                    TJ(QI,
                    function() {
                        if (!UJ.cm()) UJ.w();
                        hI.clear();
                        hI.w();
                        $I = new LH(2000, 50, VJ, p(WJ, gk()), XJ);
                        $I.BA()
                    })
                } catch(c) {
                    YI = false;
                    jJ(b);
                    Q(re, Pr)
                }
            })
        }
    })
}

I beautified the code with http://elfz.laacz.lv/beautify/ if you would like to see the whole beautified code dump it is at http://thadk.net/GoogleReaderClean-28Aug2008.gz

 
Aug 28, 2008
Thadk 3 posts

Topic: Ideas and script requests / FB Posted Item / Google Shared Items

The feedhead third-party "box" for Facebook is excellent, has this functionality as well as aggregation of popular shared subjects."

 
Mar 4, 2007
Thadk 3 posts

Topic: Ideas and script requests / Google Reader jpg|gif|png link -> img src=

Simple script to take links to images and display them--possibly only when this image link is the primary contents of the post.