readabilite: add tags to black list
This commit is contained in:
		@@ -40,14 +40,14 @@ regex_bad = re.compile('|'.join(['robots-nocontent', 'combx', 'comment',
 | 
			
		||||
    'shoutbox', 'sidebar', 'sponsor', 'ad-', 'agegate', 'pagination',
 | 
			
		||||
    'pager', 'popup', 'tweet', 'twitter', 'com-', 'sharing', 'share', 'social',
 | 
			
		||||
    'contact', 'footnote', 'masthead', 'media', 'meta', 'outbrain', 'promo',
 | 
			
		||||
    'related', 'scroll', 'shoutbox', 'sidebar', 'sponsor', 'shopping', 'tags',
 | 
			
		||||
    'related', 'scroll', 'shoutbox', 'shopping', 'tags',
 | 
			
		||||
    'tool', 'widget', 'hide']), re.I)
 | 
			
		||||
 | 
			
		||||
regex_good = re.compile('|'.join(['and', 'article', 'body', 'column',
 | 
			
		||||
    'main', 'shadow', 'content', 'entry', 'hentry', 'main', 'page',
 | 
			
		||||
    'pagination', 'post', 'text', 'blog', 'story', 'par', 'editorial']), re.I)
 | 
			
		||||
 | 
			
		||||
tags_junk = ['script', 'head', 'iframe', 'object', 'noscript', 'param', 'embed', 'layer', 'applet', 'style', 'form', 'input', 'textarea']
 | 
			
		||||
tags_junk = ['script', 'head', 'iframe', 'object', 'noscript', 'param', 'embed', 'layer', 'applet', 'style', 'form', 'input', 'textarea', 'button']
 | 
			
		||||
 | 
			
		||||
attributes_fine = ['title', 'src', 'href', 'type', 'name', 'for', 'value']
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user