Firefox Reader Mode

webdeveloping, design, php development
Post Reply
User avatar
vst
Admin
Posts: 81
Joined: Thu Jan 15, 2009 2:36 pm

Firefox Reader Mode

Post by vst » Mon Apr 11, 2016 10:28 am

I figured that in order to modify what will be shown in Firefox Readermode, you can play with this classes and tags.

Code: Select all

 REGEXPS: {
    unlikelyCandidates: /banner|combx|comment|community|disqus|extra|foot|header|menu|modal|related|remark|rss|share|shoutbox|sidebar|skyscraper|sponsor|ad-break|agegate|pagination|pager|popup/i,
    okMaybeItsACandidate: /and|article|body|column|main|shadow/i,
    positive: /article|body|content|entry|hentry|main|page|pagination|post|text|blog|story/i,
    negative: /hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|masthead|media|meta|modal|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,
    extraneous: /print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,
    byline: /byline|author|dateline|writtenby/i,
    replaceFonts: /<(\/?)font[^>]*>/gi,
    normalize: /\s{2,}/g,
    videos: /\/\/(www\.)?(dailymotion|youtube|youtube-nocookie|player\.vimeo)\.com/i,
    nextLink: /(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,
    prevLink: /(prev|earl|old|new|<|«)/i,
    whitespace: /^\s*$/,
    hasContent: /\S$/,
  },
e.g. an div with the classname "banner" wont be shown.


best regards
so long and thank you for the fish
staubmann.eu

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest