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

Comments

194 responses to “CSS Naked Day”

  1. […] or Web Developer Toolbar if you are in Firefox. Or just install some simple plugins, like the Wordcodess Naked Day Plugin […]

  2. […] bloggers, go download this plug-in to get naked with me. Thanks for sharing! These icons link to social bookmarking sites where […]

  3. Andi Avatar
    Andi

    I miss accesskeys on this website

  4. […] deseas unirte a esta iniciativa, puedes usar el plugin de WordPress Naked Day que automáticamente calcula si es 9 de abril de 2008 para eliminar todas las hojas de estilo. […]

  5. […] and see how good it looks without all that CSS. If you’re using WordPress, you can grab the CSS Naked Day Plugin and not have to worry about disturbing your layouts once the day is through. So far I’ve been […]

  6. […] PD: no se asusten, no se cagó la plantilla del sitio. Hoy, 9 de abril, es el CSS Naked Day. Me enteré gracias a Isopixel y Gedankenexperiment está desnudo gracias al plugin CSS Naked Day. […]

  7. […] quieres sumarte a esta iniciativa y tienes un blog con WordPress puedes utilizar el plugin CSS Naked Day que calculará cada año cual es el CSS Naked Day y desactivará automaticamente los CSS de tu […]

  8. […] es ist css naked day. Da will ich mal hoffen das das von den Heise Redakteuren empfohlene plugin keine boesen Ueberraschungen […]

  9. tex Avatar

    Great Plugin! Thank you.

  10. […] den CSS Naked Day gelesen. Ich finde diese Idee interessant, deshalb habe ich mir kurzerhand das Plugin für WordPress installiert, und so ist mein Blog nun an jedem 9. April nackt. Schade, daß er keine Frau ist […]

  11. […] to a handy WordPress plugin it didn’t even take any […]

  12. […] Descarga el plugin para wordpress: WordPress Naked Day […]

  13. […] alle Worpress Blogger die es sich einfach machen wollen: Bei ajalapus.com gibt es ein nettes Plugin. Browse Previous: Zitat des Tages – HumorDie schwierigste Turnübung […]

  14. […] can sign up, and find resources and instructions (including a slick WordPress Plugin) at the official naked […]

  15. […] war der Annual CSS Naked Day. Auch wenn mein Blog nur kurz nackt ohne Design da […]

  16. […] el blog Anieto2k han hablado de ello y en Aja Lapus (inglés) también profundizan mucho sobre el […]

  17. […] this year I stripped my styles by hand, I think next year I will use Aja Lapus’s WordPress Naked Day plugin for the blog. In just one click (activate it in your plugins area) you can strip down to […]

  18. […] join the next CSS Naked Day on Thursday, April 9th, 2009. As for WordPress lover, you can install a plugin to join this “desire to strip the web” and expose its “sexiness”. For […]

  19. […] erejét. Úgyhogy holnap mindenki vetkÅ‘ztesse csak le az oldalát, hadd lássuk a valóságot. WordPress plugin, ami automatikusan eltávolítja a CSS-t, hogy az elsÅ‘ meztelenek között […]

  20. […] Aja’s updated most excellent WordPress Naked Day Plugin […]

  21. […] bÄ™dzie… uboższa, proszÄ™ wiÄ™c siÄ™ nie przestraszyć Plugin do WordPressa dostÄ™pny tutaj. PERMALINK = “http://blog.michno.org/css-naked-day-124.html”; SKIN = “white”; […]

  22. baron Avatar

    hi there .thanks for plugin:

    Does anybody know if tis script is compatible with WordPress 2.5.1?

    Thanks in advance for any help on this!

    best regards

  23. Aja Avatar

    Yes, it is compatible with the latest WordPress. 😀

  24. […] WordPress 用户,这里有一个现成的插件,CSS Naked Day,你可以直接下载,解压缩,然后上传到 […]

  25. […] CSS Naked Day Menelanjangi blog dengan melepas fungsi CSS. Untuk memperingati Hari Tanpa CSS. […]

  26. […] CSS Naked Day. Me enteré gracias a Isopixel y Gedankenexperiment está desnudo gracias al plugin CSS Naked Day. Carteras de cuero de ranas y […]

  27. Patrik Avatar

    Now that’s funny, I never knew there was a CSS-naked day, but I’ll sure be a part of it next year!

  28. […] bÄ™dzie… uboższa, proszÄ™ wiÄ™c siÄ™ nie przestraszyć Plugin do WordPressa dostÄ™pny tutaj. PERMALINK = “http://blog.michno.org/css-naked-day-421.html”; SKIN = “white”; […]

  29. Auyana Avatar

    Will there be a second CSS-naked day? I also would like to participate. If there will be another one please post the next event.

  30. […] Aja’s actualiza este excelente plugin WordPress Naked Day Plugin […]

  31. […] be honest. I don’t actually know when it starts or ends (I’ve got the plugin to figure it out for me), because it’s advised that although the actual day is 9th April, we […]

  32. […] udziaÅ‚ i pokaże blog w stroju Adama. Dla wszystkich leniwych wordpressowiczów, polecam wtyczkÄ™ CSS Naked Day/, która brudnÄ… robotÄ™ odwali za Was 😉 […]

  33. […] Day findet Ihr hier oder hier auf Deutsch.  Umgesetzt habe ich es ganz einfach mit dem passenden WordPress-Plugin. There are currently no comments highlighted. […]

  34. […] 想想怎么裸奔法,因为偶不懂,O(∩_∩)O~,幸好,我用的是WordPress,有个插件CSS裸奔插件可以支持我直接参加这个裸奔节了,所以,go,裸奔去! […]

  35. […] ä½ çš„WP也想一起裸奔?猛击这里! 本日志由venj发表于 2009å¹´4月8æ—¥, 23:46,归档于Misc, Web,标签为 Blog, CSS。你可以把“永久链接”加入书签,或使用“评论RSS源”订阅这篇日志的评论。 发表评论或者复制引用通告地址。 var blogurl=”http://ilovemac.cn/blog”; var needemail=”1″; var nowurl=”425″; var md5 = “ae9bc5a9f51135fac6673ea949f39cda”; […]

  36. […] Mañana es el nuevo Naked Day y en esta ocasión usare el plugin para wordpress de Ajalapus. […]

  37. […] CSS Naked Day作者的插件页 […]

  38. […] 当然,如果你使用的是WordPress,且像我一样不喜欢麻烦的话,这里有专门的CSS Naked Day 的插件帮你完成这项功能,非常简单!点击打开WordPress CSS Naked Day插件页面下载后启用即可. […]

  39. […] 有关CSS Naked Day的插件 当然,如果你使用的是WordPress,且像我一样不喜欢麻烦的话,这里有专门的CSS Naked Day 的插件帮你完成这项功能,非常简单!点击打开WordPress CSS Naked Day插件页面下载后启用即可. […]

  40. […] 有关CSS Naked Day的插件 当然,如果你使用的是WordPress,且像我一样不喜欢麻烦的话,这里有专门的CSS Naked Day 的插件帮你完成这项功能,非常简单!点击打开WordPress CSS Naked Day插件页面下载后启用即可. […]

  41. […] 当然,如果你使用的是WordPress,且像我一样不喜欢麻烦的话,这里有专门的CSS Naked Day 的插件帮你完成这项功能,非常简单!点击打开WordPress CSS Naked Day插件页面下载后启用即可. […]

  42. […] WordPress CSS Naked Day插件 […]

  43. […] true, as I am using the WordPress Naked Day Plugin that simply strips my site every year on April 9th. It works in the background and it’s beyond […]

  44. […] 想想怎么裸奔法,因为偶不懂,O(∩_∩)O~,幸好,我用的是WordPress,有个插件CSS裸奔插件可以支持我直接参加这个裸奔节了,所以,go,裸奔去! […]

  45. […] (või mõnelt teiselt veebilehelt) 9. aprilliks kõik CSS stiililehed. Mina kasutasin vastavat WordPress’i pluginat, et mul poleks vaja öösel üleval olla ja käsitsi stiililehti eemaldada ja tagasi […]

  46. […] WordPress Naked Day Plugin (作者Aja’s) […]

Leave a Reply

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