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

193 responses to “CSS Naked Day”

  1. […] If even you want to participate then register your site in the official site and then strip the CSS from your site. If you are on WordPress then you can use this plugin. […]

  2. […] 9 апреля оключить на ÑÐ°Ð¹Ñ‚е все оформление. На ÑÑ‚ранице акции даже предлагаются средства автоматизации этой операции, вплоть Ð´Ð¾ Ð¿Ð»Ð°Ð³Ð¸Ð½Ð¾Ð² Ðº Wordpress. […]

  3. had Avatar

    let’s get naked again 🙂

  4. […] naked for 24 hours in all the various timezones around the world.  I’ve installed the WordPress CSS Naked Day plugin, which offers a local time mode (just 24 hours) and a 48-hour mode, which is the […]

  5. […] CSS Naked Day 过CSS裸奔节用的,每年裸奔节自动裸奔 […]

  6. […] in letos se ji pridružujem Å¡e sam. ÄŒe uporabljate WordPress, potem je reÅ¡itev zelo enostavna. Plugin – CSS Naked Day vas reÅ¡i odvečne CSS navlake in vaÅ¡ blog postane gol, kot Å¡e ni bil nikoli. […]

  7. […] Link: WordPress Naked Day Plugin […]

  8. […] 另外,如果你用的是Wordpress,并且懒得改页面,这儿还有个CSS裸奔节插件: http://www.ajalapus.com/downloads/css-naked-day/ […]

  9. […] rest of the world, I’ll help promote Web Standards – plain and simple. I’ll be using Aja’s WordPress Naked Day plugin to simplify the code […]

  10. DulceNegosyante Helps You Make Money Online Avatar

    Can’t wait to join my first naked day! Woot! 🙂

    -Dulce

  11. […] WordPress users running versions 2.x you can use the WordPress Naked Day Plugin. For WordPress versions below 2.x you can use CSS Naked Day WordPress Plugin and for non WordPress […]

  12. […] bloccherà la visualizzazione dei CSS solo il giorno 9 aprile. Lo potete scaricare sulla pagina di Aja. Altri plugin per piattaforme diverse o un codice php per bloccare i css automaticamente, sono […]

  13. […] Ha wordpresst használsz, akkor ajánlom Aja pluginjét […]

  14. […] pouvez utiliser le plugin wordpress CSS Naked Day dont la page de l’auteur est déjà sans CSS… Qui le fait aussi […]

  15. […] If Annual CSS Naked Day is over, then everything will be back to normal again. How did I do this you may ask. I used Aja Lapus’ Word Press Plug-in. […]

  16. Monika Avatar

    Oh!

    this time is 8.April 2008 but your plugin stripped off all my style.css not 9.april 2008 ;);)

    /shocking/

    and your site is also without style.css hours before 9.04.2008 😉

    regards

  17. […] 关于裸奔节,参看官网和中文介绍,Wordpress的插件在这里。 Author: Benny […]

  18. […] [My CSS Naked effort powered by Aja Lapus’ CSS Naked Day Plugin] […]

  19. Aja Avatar

    Monika, my plugin defaults to 48 hours of April 9 anywhere around the world to activate. Maybe you wanted to set your blog to just the local time. Look for the Options/Settings on your WordPress admin. 🙂

  20. […] You can download the plugin on WordPress or the Plugin Home Page. […]

  21. […] options last year on how to turn off your blog’s stylesheet using WordPress Plugins with WordPress Naked Day Plugin for all WordPress versions, CSS Naked Day WordPress Plugin for pre-WordPress 2x blogs, the Naked […]

  22. […] 4月9号是CSS Naked Day,所以我的博客就成这样了。所谓CSS Naked Day就是将页面的CSS样式都略掉,只显示文本内容的一种活动,大家都叫它“裸奔日”。虽然我不是搞设计的,但是也凑一回热闹。我博客用了Wordpress Naked Day Plugin,有感兴趣的也参与一下吧。 […]

  23. […] für das WordPress-Blog kommt das CSS Naked Day-Plugin zum Einsatz. Ab Mitternacht wird für 24 Stunden jeglicher CSS-Verweis also aus den Sourcen […]

  24. […] y a bien un plugin WordPress qui s’occupe de tout, mais ça m’embête mon mettre à nu de la sorte mon […]

  25. […] Jutro na Å›wiecie jest prowadzona akcja “CSS Naked Day“, tak wiÄ™c jutro szata bloga bÄ™dzie… uboższa, proszÄ™ wiÄ™c siÄ™ nie przestraszyć Plugin do WordPressa dostÄ™pny tutaj. […]

  26. […] sich dafür interessiert und selber bloggt, findet hier übrigens ein passendes PlugIn. Don’t think, just […]

  27. […] firstly deleted the main stylesheet to remove the look and feel; and secondly downloaded Aja’s CSS Naked Day plugin for WordPress to do the same for my […]

  28. […] desnudará su estilo mañana. Yo he optado por utilizar el plugin de WordPress Naked Day que automáticamente calcula si es 9 de abril de 2008 para eliminar todas las hojas de estilo. En […]

  29. […] even a wordpress plugin that lets you strip of that design without touching your html. And thanks to Lorelle for reminding […]

  30. […] the official CSS Naked Day Site for more info and to learn how to participate. There is a WordPress Naked Day Plugin to make it easy for a lot of […]

  31. […] all you WordPress fans, there is a plugin for CSS Naked Day that strips out stylesheet references, embedded stylesheets and inline styles for you…all […]

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

  33. […] de PHP que elimina los estilos, o buscar la opción más sencillas como yo, que es instalar un plugin que se encargará de […]

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

  35. […] tiene que he instalado el plugin y así me ha quedado el huerto. Si quieres sumarte y tienes WP, bájate el plugin, actívalo y en Opciones, ponle el valor ‘24 (local WP time)’. Y nada, que te sea leve. […]

  36. […] Today Bald Man’s Wardrobe is provided by Aja Lapus. […]

  37. […] through a wordpress plugin which disables automatically the CSS at April 9th, you can download it here. As here, I’ll do it on my main webpage, visualDelusions. Share and Enjoy: These icons link […]

  38. […] deseas unirte, como nosotros, 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. No […]

  39. […] P.S. WordPress懶人如我,可安裝Ajaçš„Wordpress Naked Day Plugin。 […]

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

  41. […] ich selbst zu faul müde war, um bis 0 Uhr aufzubleiben, habe ich gestern Abend schnell das CSS Naked Day-Plugin von Aja Lapus installiert. Es hat, wie man sehen kann, seinen Dienst ganz prima […]

  42. […] información: CSS Naked Day) Esta entrada fue escrita por Daniel López y publicada el día 9 Abril 2008 a las 9:57, en las […]

  43. […] really sure why the heck I’m participating, but hey why not go with the flow…There is a plugin which automagically has stripped all of the CSS from my site for today only, without impacting the […]

  44. […] maap, kirain masih tanggal 8. Duh ikutan berpartisipasi gag ya ? Gw dah pasang plugin untuk wordpress tapi belum tak aktifin. Rencananya baru mo diaktifin tanggal 8 april, lha kok […]

  45. […] using the WordPress Naked Day Plugin by Aja’s. If you liked that post, then try these…No Final Answer?Well well, the day has […]

  46. […] makes participating in Naked Day ‘08 super easy by providing a plugin that will automatically turn off my CSS template. The result should be a text-based, […]

  47. […] the annual CSS Naked day. Today, I have disabled my CSS on this site, with the use of this plugin, that will automatically disable all CSS on your wordpress blog. Just download, unzip, and upload […]

  48. […] Айя оновив пречудовий плаґін до Вордпресу WordPress Naked Day Plugin […]

  49. […] Now, this site is actually a bit of a cop-out. I don’t have any static pages at the moment, I’m running WordPress. I didn’t even write my own templates. All I had to do was install a plug-in. […]

  50. […] devem remover o CSS. Eu fiquei meio bolado pensando em como fazer isso… quando achei um maravilhoso plugin pro WordPress! E depois que coloquei o OneClick Install, foi pá-pum pra instalar e terminar […]

Leave a Reply

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