My favorites | Sign in
Project Logo
             
Search
for
Updated Oct 28, 2007 by jackysee
Labels: Phase-Implementation
AddNewSiteParser  

#Add your own site in the scripts

Introduction

You can add your own site to the scripts. You need to have some knowledge on javascript programming and how the script work.

Details

A siteParser object is defined at the very beginning of the script. It's a map function. It looks like:

	var siteParser = {
		"hk.rd.yahoo.com": function(syhidden, text){
			return contentParse(syhidden, text, {search:"id=\"ynstory\"", stripTags:["table","script"]});
		},
		"mysinablog.com": function(syhidden, text){
			return contentParse(syhidden, text, {search:"class=\"post_content\""});
		}
        }

Sign in to add a comment
Hosted by Google Code