Guest User

Spritz HTML Candidate Evaluation

a guest
May 19th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. regexps: {
  2.             unlikelyCandidates: /ad|vertisement|aside|combx|comment|community|disqus|extra|foot|nav|header|menu|remark|rss|shoutbox|sidebar|sponsor|ad-break|agegate|pagination|pager|popup|tweet|twitter|figure|figcaption|style|script/i,
  3.             okMaybeItsACandidate: /and|article|body|column|main|shadow/i,
  4.             positive: /article|body|content|entry|hentry|main|page|pagination|post|text|blog|story/i,
  5.             negative: /combx|comment|com-|contact|foot|footer|footnote|masthead|media|meta|outbrain|promo|related|scroll|shoutbox|sidebar|sponsor|shopping|tags|tool|widget|style|script|spritzlet-container/i,
  6.             extraneous: /print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single/i,
  7.             divToPElements: /<(a|blockquote|dl|div|img|ol|p|pre|table|ul)/i,
  8.             replaceBrs: /(<br[^>]*>[ \n\r\t]*){2,}/gi,
  9.             replaceFonts: /<(\/?)font[^>]*>/gi,
  10.             trim: /^\s+|\s+$/g,
  11.             normalize: /\s{2,}/g,
  12.             killBreaks: /(<br\s*\/?>(\s|&nbsp;?)*){1,}/g,
  13.             videos: /http:\/\/(www\.)?(youtube|vimeo)\.com/i,
  14.             skipFootnoteLink: /^\s*(\[?[a-z0-9]{1,2}\]?|^|edit|citation needed)\s*$/i,
  15.             nextLink: /(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,
  16.             prevLink: /(prev|earl|old|new|<|«)/i
  17.         },
Advertisement
Add Comment
Please, Sign In to add comment