Blogbus Hack : 保存评论框信息 (更新GreaseMonkey脚本)

Blogbus的评论系统有两点让我极为不爽: 一是评论过滤机制,导致我的留言经常莫名其妙的被拒绝发表(我连双脚都举起来保证我绝对没有发表任何有违和谐的信息);二是评论框不会在提交留言之后记录我的用户信息(Name, E-Mail, URL),每次留言我都得手动填写。这前一点不爽的谁也没办法,谁叫我们要和谐呢,后面这点的话我们可以通过在模板里加入一段javascript来保存评论者的cookie信息。我得先申明,对Javascript我也基本属于入门阶段,以下代码中很大程度参考自PPK的这篇文章Javascript – Cookies

Blogbus最近改版一次后,新的模板系统不再允许修改评论框了,所有模板的评论框都是统一规范的,所以这个脚本适用于任何新版模板系统的任何模板,旧版的话我稍后补充。对于新版模板的话,你需要做的只是在header(前提是你先的启用自定义模板来修改)里加入以下代码:
Read More

No Way, IE6!

After the redesign which’s compatible with IE6, I found there were more and more visitors browsing my site with IE6.

browserstat

The statistics chart shows the percentage of IE6ers’ visiting has risen to 19%, and IE7 only takes 4.3%. Damnit! I hate IE6, and definitely I’m not gonna yield to you guys who still using it. I couldnt figure out how many times I’ve been asked to clean the viruses for my classmates just becuz they’re using IE, and how sick I’ve been of the IE6′s terrible CSS compliance. So plz switch to Firefox, or upgrate your IE browser to 7. IE7 is quite okay, really.

I re-added the IE6 blocking script, if you feel the same way as I do. Try this code (put it into the very top of <head> area):

<!--[if lt IE 7]>
<script type="text/javascript">
//<![CDATA[
window.location="http://punkid.org/changebrowser.html" // whatever page you want to show to your IE6ers
//]]>
</script>
<![endif]-->

You Might Know

This site is powered by WordPress CMS & hosted by Dreamhustle Dreamhost.

And the theme is inspired by WP Typo and completely crafted under Gentoo Linux with VIM editor.

Sponsors

Monthly Archives

Search