vernal pool

Mittineague

Really Valid CSS? GreaseMonkey Userscript

There are 41 plants in blossom on May the 24th.
Blue Toadflax Linaria canadensis blossoms between May 23 and Jun 17
Bluets Houstonia caerulea Apr 18 to Jun 18
Canada Mayflower Maianthemum canadense May 15 to Jun 03
Celandine Chelidonium majus May 07 to Sep 11
Cleavers Galium aparine May 15 to May 27
Common Chickweed Stellaria media Mar 26 to Jun 09
Common Cinquefoil Potentilla simplex Apr 30 to Aug 19
Common Dandelion Taraxacum officinale Apr 03 to May 21
Common Winter Cress Barbarea vulgaris Apr 25 to May 30
Cow Vetch Vicia cracca May 23 to Aug 29
Dame's Violet Hesperis matronalis May 15 to Jun 18
Dwarf Cinquefoil Potentilla canadensis Apr 18 to May 30
False Solomon's Seal Smilacina racemosa May 15 to May 30
Field Hawkweed Hieracium pratense May 23 to Sep 07
Garlic Mustard Alliaria officinalis Apr 29 to Jun 17
Golden Alexanders Zizia aurea May 15 to May 30
Great Chickweed Stellaria pubera May 07 to Jun 19
Ground Ivy Glechoma hederacea Apr 20 to Jun 18
Hooked Crowfoot Ranunculus recurvatus May 18 to May 23
Jack-in-the-pulpit Arisaema atrorubens May 18 to May 23
Japanese Honeysuckle Lonicera japonica May 21 to May 30
Larger Blueflag Iris versicolor May 21 to Jun 05
Moss Phlox Phlox subulata Apr 16 to Jun 01
Mouse-ear Chickweed Cerastium vulgatum Apr 24 to May 27
Myrtle Vinca minor Apr 11 to Jun 01
Northern White Violet Viola pallens Apr 21 to May 21
Oxeye Daisy Chrysanthemum leucanthemum May 15 to Aug 02
Pink Lady Slipper Cypripedium acaule May 15 to May 28
Red Clover Trifolium pratense May 23 to Oct 24
Small Jack-in-the-pulpit Arisaema triphyllum May 18 to May 23
Star of Bethlehem Ornithogalum umbellatum May 26 to Jun 01
Tall Buttercup Ranunculus acris May 15 to Jul 16
Thyme-leaved Speedwell Veronica serpyllifolia May 10 to Aug 02
True Forget-me-not Myosotis scorpioides May 02 to Jun 07
Water Hemlock Cicuta maculata May 15 to Jul 16....
// ==UserScript==
// @name          Really Valid CSS?
// @namespace     http:///www.mittineague.com/dev/
// @description   check if pages claiming to be valid CSS really are
// @include       *
// ==/UserScript==
 
/*
 * This is a modified version of the Really Valid? (HTML) userscript from
 * http://www.oreilly.com/catalog/greasemonkeyhks/
 *
 * XPATH and url changed to CSS validator
 * 'if' regex changed to match CSS validator response 
 * title and innerHTML changed
 * November 15, 2006 - added (function(){ [CODE] })();
 *
 * ORIGINAL CODE
 *
 * var snapValidLinks = document.evaluate(
 *     "//a[@href='http://validator.w3.org/check/referer']",
 *     document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
 * if (!snapValidLinks.snapshotLength) return;
 * GM_xmlhttpRequest({
 *     method: 'GET',
 *     url: 'http://validator.w3.org/check?uri=' + escape(location),
 *     onload: function(oResponse) {
 *         if (/This Page Is Valid/.test(oResponse.responseText)) return;
 *         for (var i = 0; i < snapValidLinks.snapshotLength; i++) {
 *             var elmInvalid = snapValidLinks.snapshotItem(i);
 *             elmInvalid.title = 'This page claimed to validate, but it lied';
 *             elmInvalid.innerHTML = 'Invalid markup!';
 *         }
 *     }
 * });
 *
 */
 
(function(){
 
var snapValidLinks = document.evaluate(
    "//a[starts-with(@href, 'http://jigsaw.w3.org/css-validator/')]",
    document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
if (!snapValidLinks.snapshotLength) return;
GM_xmlhttpRequest({
    method: 'GET',
    url: 'http://jigsaw.w3.org/css-validator/validator?uri=' + escape(location),
    data: null,
    onload: function(oResponse) {
        if (/Congratulations!/.test(oResponse.responseText)) return;
        for (var i = 0; i < snapValidLinks.snapshotLength; i++) {
            var elmInvalid = snapValidLinks.snapshotItem(i);
            elmInvalid.title = 'This page is NOT valid';
            elmInvalid.innerHTML = 'Invalid CSS!';
        }
    }
});
 
})();
reallyvalidcss.user.js
About - Blog - Sitemap - Contact - Forums - Home 

PHP icon. PEAR icon. MySQL icon. phpBB icon. Sitepoint icon. Valid XHTML 1.0 icon. Valid CSS! icon. Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0