Seeing nofollow links 在css中nofollow

2009/1/5 11:58:02    发布:walf_man

Update: The ChromEdit extension I mention below is stale and doesn’t work with Firefox 1.5. Someone has made a version for FF1.5 though; it’s called ChromEdit Plus. Follow the directions at the top of that page. The short version is 1. save the .xpi file to your desktop, then 2. drag the .xpi file over onto your browser to install the .xpi file. 3. Restart Firefox to install the extension. 4. To use, select Tools->ChromeEdit Plus->ChromEdit. Select the userContent.css tab and paste the code

a[rel~="nofollow"] {
  border: thin dashed firebrick ! important;
  background-color: rgb(255, 200, 200) ! important;
}

into the userContent.css area, then click Save. You might need to restart Firefox once more, but when you do, this link should have a pink background, and a dotted red line around it.


Old post follows:
The blessing/curse of learning more about SEO is that it’s often in the back of your mind; it affects how you look at regular web pages. Here’s a simple tip that will help with your X-ray vision: make nofollow links visible.

When you’re using Firefox, you can make a file called userContent.css to override the css on a given page. First you have to find the right directory; all your Firefox settings are stored in a profile directory. This page tells how to find your profile directory. Once you know the profile directory location, go into the “chrome” directory and look for a file userContent.css. If no such file exists, there may be a file called “userContent-example.css” that you can rename. Here’s what you can put into userContent.css:

a[rel~="nofollow"] {
  border: thin dashed firebrick ! important;
  background-color: rgb(255, 200, 200) ! important;
}

(Note: you may need to restart Firefox as well for the changes to take effect.)

Then if you want to link to a blackhat spammer without it counting as a vote in Google, just add rel=”nofollow” to the hyperlink, and you’ll be able to tell the difference between normal and nofollow links.

When you view a page, you’ll see something like this (please pardon the self-referential snapshot):


Example of visible nofollow CSS

I highly recommend adding code to your userContent.css file so that you can see nofollow links easily. Note: ChromEdit is a nice extension that makes editing your userContent.css file really easy, but it currently (Jan. 14, 2006) only works with Firefox versions less than 1.5.

来源URL:http://www.mattcutts.com/blog/seeing-nofollow-links/

发表评论:

即刻认识你所在地区的8万帅哥美女
免费注册,简单容易!匿名电邮,既隐秘又安
全!注意:绝不含有或容许任何色情成份!
chinesefriendfinder.com

[评论最长字数:1000,查看结果请刷新]

◎请在这里发表您的看法,发言请遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。