Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Online .NET Class Library Reference

Name: Anonymous 2007-08-04 14:28 ID:fpfgV+up

Is there one excluding that one at microsoft.com? That site is just terrible, I can't use it.

Name: Anonymous 2007-08-04 22:10 ID:o8PsZEcX

Just get an offline copy of MSDN

Name: Anonymous 2007-08-04 23:03 ID:0s9P5GH2

CHeck if your school is part of the ``MSDN Academic Alliance''
If so, you can get all sorts of stuff like Visual Studio 05 Professional, Vista ultimate, DDKs, etc for free.

Name: Anonymous 2007-08-04 23:16 ID:zOwRvsqx

Name: Anonymous 2007-08-04 23:35 ID:Heaven

Name: Anonymous 2007-08-05 4:40 ID:3qXM02MS

>>2
I'm afraid it is in some proprietary or binary format that works only on Windows.

>>3
Contrary to a popular belief, not everyone here is underage.

>>4-5
Thanks, but no thanks, .NET already comes with enough AIDS.

Name: Anonymous 2007-08-05 7:35 ID:1x+G6D7N

Name: Anonymous 2007-08-05 11:41 ID:3qXM02MS

>>7
Yes, I'm aware of that. Unfortunately it's full of "Documentation for this section has not yet been entered.", effectively forcing me to use two sources and that is even less productive than just dealing with one bad source.

Name: Anonymous 2007-08-05 11:45 ID:3qXM02MS

Anyway, here's the solution:


// ==UserScript==
// @name          .NET CLR defailer
// @description   Makes Microsofts on-line .NET Framework Class Library Reference at http://msdn2.microsoft.com/en-us/library/ms229335.aspx fail less. Basically removes noise.
// @namespace     tag:LolipopLaboratoriesIncorporated,2007-08-04:.NET_CLR_defailer
// @include       http://msdn2.microsoft.com/en-us/library/*;
// ==/UserScript==

// uncomment and drop the fallowing thr33 lines in your prefs.js, otherwise you'll get hit by print dialog on every page. sorry, monkey can't work this
// user_pref("capability.policy.policynames", "noprint");
// user_pref("capability.policy.noprint.sites", "http://msdn2.microsoft.com";);
// user_pref("capability.policy.noprint.Window.print", "noAccess");

// code examples in these languages will be removed
var languagesToRemove = ['VisualBasic', 'CPlusPlus', 'JSharp', 'JScript', 'other'];

// redirect to print friendly page, if not there
if (!window.location.href.match(/d=print/))
{
    window.location.href = urlToPrinter(window.location.href);
}

// rewrites url to print friendly page
function urlToPrinter(url)
{
    var url = unescape(url);
    if (/\)\.aspx$/.test(url))
        return url.replace(/\)\.aspx$/, ',d=printer).aspx');
    else
        return url.replace(/\.aspx$/, '(d=printer).aspx');
}

// lol, xpath. is it turing complete yet?
function xpath(query)
{
    return document.evaluate(query, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
}

// remove, rewrite, rewire, make it usable
function onDocumentLoad()
{
    // removing print friendly anchor explanations
    document.body.innerHTML = document.body.innerHTML.replace(/(\<\/a\>)\s*\[\s*http.*?\]/g, '$1'); // where TF is my (?<=)?
    // removing logo and copyrites
    var noise = xpath("//td[@class='PFB_Left' or @class='PFB_Right']/parent::tr");
    if (noise.snapshotLength > 0)
        noise.snapshotItem(0).parentNode.removeChild(noise.snapshotItem(0));
    // removing unwanted code examples
    while (languagesToRemove.length > 0)
    {
        var moreNoise = xpath("//div[contains(@id, '"+ languagesToRemove.shift() +"')]"); // and why can't we have ends-with?
        for (i = 0; i < moreNoise.snapshotLength; i++)
            moreNoise.snapshotItem(i).parentNode.removeChild(moreNoise.snapshotItem(i));
    }
    // rewiring anchors to print friendly pages
    var anchors = xpath('//a[@href]');
    for (i = 0; i < anchors.snapshotLength; i++)
        anchors.snapshotItem(i).href = urlToPrinter(anchors.snapshotItem(i).href);
}

// yes, plz
window.addEventListener("load", onDocumentLoad, false);

Name: Anonymous 2007-08-05 14:17 ID:Heaven

>>9

// uncomment and drop the fallowing thr33 lines in your prefs.js,

Name: Anonymous 2007-08-05 17:53 ID:3qXM02MS

>>10
What? Do you want something? Don't like something?

Name: Anonymous 2007-08-05 18:51 ID:Heaven

>>11
fallowing thr33

Name: Anonymous 2007-08-05 20:21 ID:Heaven

>>12
Yes, I'm l33t like that!

Name: Anonymous 2007-08-06 5:25 ID:ZkH5Y3Yh

>>9
Actually yes, you can say that XPath is turing complete.

http://www.unidex.com/turing/utm.htm

Name: Anonymous 2011-11-10 11:24

old thread is old

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List