CSS Naked Day

CSS Naked Day plugin for WordPress automatically strips off XML/HTML stylesheet references, embedded stylesheets and inline styles—all without editing your template! It also provides a function to determine whether it is the 9th of April on the recommended worldwide 48-hour CSS Naked Day period or just your local 24-hour period if ever you want to automate a message telling viewers why your site is in the nude.

Download Plugin

Usable Functions

bool is_naked_day(void)

returns true when it is the 9th of April on the time span you’ve set, false otherwise. Sample usage:

<?php
  if (is_naked_day()) {
?>  <h3>What happened to the design?</h3>
    <p>To know more about why styles are disabled on this website
      visit the <a href="http://naked.dustindiaz.com" title="Web
      Standards Naked Day Host Website">Annual CSS Naked Day</a>
      website for more information.</p>
<?php
  }
?>

Known Issues

The plugin would also delete occurences of inline styles (style="") that are intended as text and not as the attribute for styling markup itself. For example, in CSS tutorial pages.

Resolved in Version 1.1.2

In versions prior to 1.1.2, the plugin would cause errors for some inline styles that have escaped quotation marks of the same type as the attribute value delimiter.

For example:

style="font-family:\"Lucida Grande\",\"Lucida Sans Unicode\",sans-serif;"

… would leave …

Lucida Grande\",\"Lucida Sans Unicode\",sans-serif;"

… in the markup, as the regular expression could only remove code from the style attribute only up to the first matching quotation mark without regard to the escaped ones.

Change Log

Version 1.2
Released 4 April 2008

Changes:

  • Changed CSS Naked Day date to reflect event move from April 5 to 9.
Version 1.1.2
Released 6 April 2007

Changes:

  • Fixed regex for patterns to avoid possible conflicts.
  • Fixed known issue about escaped quotation marks in inline styles.
Version 1.1.1
Released 5 April 2007

Changes:

  • Fixed stylesheet reference regex/consuming all <link> elements before targetted one.
Version 1.1
Released 31 March 2007

Changes:

  • Added option to activate only during the 24-hour local time.
  • Added configuration page.
Version 1.0.1
Released 30 March 2007:

Changes:

  • Fixed embedded stylesheet regex/conflict with delimiter.
Version 1.0
Released 28 March 2007
  • First release of the CSS Naked Day plugin.

License

Copyright © 2007-2008 Aja Lorenzo Lapus

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Read the full license

173 thoughts on “CSS Naked Day

  1. Pingback: 裸奔的艺术,2009 CSS裸奔节(CSS Naked Day) - 虫下米的前端镜像

  2. Pingback: CSS Naked Day 2009 | Make Money Group

  3. Pingback: 2009年CSS裸奔节(CSS Naked Day ) : 前端思考

  4. Pingback: CSS Naked Day · El Blog de Manu

  5. Pingback: 网页裸奔节 | 写一点

  6. Pingback: 2009年CSS裸奔节(CSS Naked Day ) : 前端思考:专注前端开发,关注用户体验

  7. Pingback: CSS Naked Day 2008

  8. Pingback: [CSS Naked Day] 2010年CSS裸奔節,快把網站外衣 脫掉、脫、脫、脫掉! | SEO 搜尋引擎優化

  9. Pingback: CSS Naked Day – Dan CSS nagcev | had blog

  10. Pingback: CSS Naked day ali dan golih spletnih strani | Optimizacija spletnih strani

  11. Pingback: Witheringtree » CSS Naked Day

  12. Pingback: CSS Naked day ali dan golih spletnih strani | Optimizacija spletnih strani - seos.si

  13. An excellent plug-in holiday Naked Day:)
    Very interesting holiday in the Internet … will definitely participate in next year’s April 9!

  14. Pingback: 今日你裸奔了吗? - Mark's Notes

  15. Pingback: KINGABIRD · Just a blog.

  16. Pingback: Celebrando el CSS Nacked Day totalmente al desnudo | 213

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>