mx pak1֚def.jsonr&"icons\icon_16.png#Jicons\icon_32.pngUicons\icon_48.png 0i@ script.js [ { "type": "extension", "frameworkVersion":"1.0.6", "version":"10.3.0", "guid": "{e4eda742-605a-4201-b785-e0e228400516}", 'name': 'F.B. Purity', 'title': { "en": 'F.B. Purity' }, 'author' : { 'name' : 'F.B. Purity' }, 'description' : {'en' : 'F.B. Purity : Clean Up And Customize Facebook'}, "actions": [ { "type": "script", "entryPoints": [ "doc_start" ], 'include:' [ '*.facebook.com' ], 'exclude:' [ '*.channel.facebook.com', ], "js": [ "script.js" ], 'includeFrames': false } ] } ]PNG  IHDR(-SPLTE/F}Qbbc\e(F}rqzmz-.?И':t1I$5kIPp󀀃mzNQYY+B06#2cu]FF:\ 6eQQE^![7sfKeeum}}wQ=/Xd {niQQQF>w~ fS8y)0>>io!'g7kC))>%5i;#WU]V %=AVy9VVV@XRO]1AA]p*JJ*DGP\Ӑ9[k{vvn/o-/;+T-IENDB`PNG  IHDR DPLTE)F!0.u͵07v0KMQxijrUkor|&CV삖-2H}=7M#4jGXIIoq)A}3F$9r䬭4r,^p".Ӌ;EsJ[`WY,-hFn}br^-M#A|r9AT2KI@DU׸ rr8:apr$9J9d>Ut#ϖ~+LB:O_tPj|e+l >0qh,Z\`4~źRZ*A]?VL7VTto)TCOn;im&MIhM]ou]_բ~RcMڒ. kV]_2jebttGllee.0`!J6LiZW9^.9>A\܁T qo^W!äqqxb<;$ap~5!򇘵~쵚1Ʈ((MQ#H+2 C bz]dA7-YG[ &,N_.i']/v?/CNWڮIENDB`PNG  IHDR00` PLTEw(Fimu+QLwή|ja1Q4D/0Cӈx|(26$4i04&:rSWuy^|Ydj,D|h{3jGc1JKUoq۴ )W8H}sCdǧ)4GGS9Cb~-(;6AgIUhS:Rz)78`պBLUj5Ţٽ"a#o3 YmoWogh B =tRNS8KgIDATHŖWHs!  ׆%phD`VD`JmmvOq9癙7d\ ES>/ ;*ٗqT:`ng~.c0w@1px `‡7}FCp <*˄+"aM$^@ܨ`E;[]c[4StZ]3yyOAV}KL%Tɠ .L-҉2e/z}Ԉ4>z Xb=$0JӮ@5/ G92NVhXEXEk>Y!4_s"E&1  ;Ń؁yqq}ٺj'KpzSz3.]ٻCs %ccAR%rޓᵵG;$e,&K3y%$met>gw =A'O:5:pelPTY6-*,( sy|ɴ1w̗"3_nUT!e/B*Z&|wndlsWOW[,'j [/QLrW|fa RasaʅAe6#Zˉo/|WUnVtoJZ+Pf)o~ M)2%Lɯb]X_3_Ϝ)"Õ}ug= \ddn7,3 G vnӲ%$RSh:II4%(,30,PHT5jkwO n4 ִ-6MLF+q{)7˖fX ]`gPLn {*#x'.k9 i(5?Cz =IENDB`// ==UserScript== // @name Facebook Purity // @namespace http://steeev.freehostia.com // @description F.B Purity hides application spam and other clutter from your facebook homepage // @icon https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/373593_408502197558_209872631_q.jpg // @include http://*.facebook.com/* // @include https://*.facebook.com/* // @match http://*.facebook.com/* // @match https://*.facebook.com/* // @exclude http://*.facebook.com/ajax/* // @exclude https://*.facebook.com/ajax/* // @exclude http://*.facebook.com/ai.php* // @exclude https://*.facebook.com/ai.php* // @exclude http://*.channel.facebook.com/* // @exclude https://*.channel.facebook.com/* // @exclude http://*.facebook.com/ai.php?* // @exclude https://*.facebook.com/ai.php?* // @exclude https://www.facebook.com/facebookforbusiness/* // @exclude http://www.facebook.com/facebookforbusiness/* // @run-at document-start // @grant GM_getValue // @grant GM_setValue // @version 10.3 - 13th August 2014 // ==/UserScript== // these 2 excludes commented out for now, till we investigate which pages we need to exclude, as we need to run on certain "connect" pages for blocking apps. // @exclude http://*.facebook.com/connect/* // @exclude https://*.facebook.com/connect/* // // (C) 2009 - 2014 Stephen Fernandez - http://www.fbpurity.com // // If you like this script please donate, big or small donations, anything is welcome : // http://donate.fbpurity.com/ // ------------------------------------------------------------ // F.B. Purity Home Page : http://www.fbpurity.com // F.B Purity Install : http://install.fbpurity.com // F.B. Purity Fan Page : http://fans.fbpurity.com // F.B. Purity UserGuide : http://user-guide.fbpurity.com // F.B. Purity Custom CSS : http://css.fbpurity.com // F.B. Purity FAQ / Help : http://faq.fbpurity.com // F.B. Purity Search : http://search.fbpurity.com // ------------------------------------------------------------ // ABOUT // ----- // This greasemonkey script hides all third party facebook application messages from your fb homepage. // Instructions on how to edit the "whitelist" are available here: http://whitelist.fbpurity.com // Instructions on how to edit the "extras" are available here: http://extras.fbpurity.com // Make donations to F.B. Purity, to show your appreciation here: http://donate.fbpurity.com // INSTALLATION // ------------ // This script is compatible with the following web browsers: Firefox, Google Chrome, Opera and Safari // // Full installation instructions are available here: // http://install.fbpurity.com // // If you have any problems, please see the Frequently Asked Questions / Help page: // http://faq.fbpurity.com // UPDATES // ------- // 1.51 30th March 2009 Bug fixed: if there were no pending requests, the script didnt work // 1.52 4th April 2009 removed GM_addStyle command, for better compatibility with other browsers (chrome + opera) // 1.53 26th April 2009 changed insertpoint so its not dependent on suggestions box // 1.54 27th April 2009 script is now compatible with Google Chrome + Opera (and possibly safari, not tested yet) // 1.54a 5th May 2009 fixed a minor bug // 1.54b 24th June 2009 fixed for facebook code change // 1.54c 29th July 2009 fixed for facebook code change // 1.54d 5th Aug 2009 fixed for facebook code change // 1.54e 26th Aug 2009 fixed for facebook code change // 1.60 4th Sep 2009 added application whitelisting capability, the default whitelisted apps are: // FB Iphone, Selective Twitter and Living Social // 1.61 14th Oct 2009 optimised script, it should run faster and more efficiently now // added tumblr, digsby and tweetdeck to whitelist, removed livingsocial from whitelist // 1.8 21st Oct 2009 added "block app" functionality and ability to show just the app messages on the page // added blackberry app to default whitelist // 1.8a 22nd Oct 2009 fixed bug with blocking apps if language was not set to english // 1.8d 23rd Oct 2009 fixed for new facebook update ( "live feed" changes ) // fixed if you click "Show x similar posts" on an application message, when you have chosen to display the app messages, the app messages will no longer be automatically hidden // if after you've blocked an app, and there are no more hidden app messages, it now returns to normal homepage view // 1.8e 26th Oct 2009 script now hides more apps (ones that use widgets) and should also now be restricted to running on the homepage // 1.9 28th Oct 2009 added filter for "extra" [joined group, became fan, attending event, became friend] messages // 2.0 31st Oct 2009 fixed Show/Hide Logic, made app+extra filters mutually exclusive, optimised the script a lot // moved fbpurity bar to the left to regain vertical space on the right hand column // newly added elements now obey the current filter // 2.1 2nd Nov 2009 reset show/hide mode to default when user changes fb filter // added workaround for fb still showing apps that you have "blocked", script now "hides" app as well as blocking it, when you click the "block app" link // fixed bug with whitelisted apps being displayed via the "show hidden apps" filter // fixed - block link wasnt showing up on dynamically inserted app messages // 2.1a 4th Nov 2009 fixed - now also hides apps that dont have a mini-icon // 2.1b 7th Nov 2009 added option to hide suggestions box // added facebook for android to whitelist // 2.2 12th Nov 2009 rewrote filter system, should block absolutely all apps now (except whitelisted ones) // added filter for photos posted by applications (eg farmville, top friends etc) // 2.2a 12th Nov 2009 fixed suggestion box filter // 2.2b 20th Nov 2009 added another "became friends" story id to extras list // 2.3 31st Jan 2010 fixed block app function for google chrome v4 + hopefully fixed the random script loading problems too // speeded up script loading time by checking if the DOM is ready, rather than waiting for the whole page to load // added "attended event" messages to blocked extras list // added an option to allow blocking of "commented on status" and "likes status" messages // added facebook for palm to default application whitelist // 2.3a 5th Feb 2010 fixed bug where the show/hide links wouldnt work if you navigated away from the homepage then came back again // 2.3b 7th Feb 2010 fixed script to work with new layout // 2.3c 8th Feb 2010 fixed script to work with custom friends lists // 2.4 13th Feb 2010 fixed hide suggestions box option (wasnt working on custom friends list pages) // fixed app filtering ( some apps were getting around the app filter ) // added the following optional extras : tagged/commented/liked photo, tagged in album, commented/liked album, commented/liked link, wall comment, group wall comment // 2.4a 18th Feb 2010 added another app exception (generic status updates posted "via some app" - using widgets) // added motoblur + iphoto uploader to default whitelist // added optional extra : "Page Wall Comments" // added optional extra : "Posted Event" // fixed bug caused by "posted events" + "became friends" sharing same story code // fixed bug caused by "became friends + became fan of" sharing same story code // 2.4b 19th Feb 2010 fixed bug in firefox where sometimes the "show extras" link stopped working // 2.4c 23rd Feb 2010 fixed event/friend/fan story code differentiation // 2.5 25th Feb 2010 added text filter list, so you can specify words or phrases you want to block from your news feeds // separated userappwhitelist from the defaultappwhitelist, for easier copying and pasting of application id lists // added picasa uploader to the default application whitelist // 2.5a 26th Feb 2010 fixed script to work with latest FB code change // 2.7 8th Mar 2010 added options editing screen that lets you save your settings for extras, whitelist, suggestions box, and custom text filter // added sprint/samsung? photo/video uploader, sony/erricson uploader,music player + status shuffle to default whitelist. // added https:// to the list of included pages for those wanting greater security whilst browsing facebook // 2.8 13th Mar 2010 fixed suggestions box wasnt being hidden on the requests page if the hide sb option was selected // fixed options screen occasionally not loading // added hide option to hide the connect with friends box // added facebook exporter for iphoto and flickr app to default whitelist // added "Allow" link to application messages, for auto whitelisting of applications // 2.8a-test 19thMar2010 alpha test of temp fix for fb codechange, basic (show/hide) functionality should be restored // 2.8b-test 20thMar2010 fixed bug in show/hide app code, fixed "block app" and "allow" links on application messages // 2.9 2ndApr2010 Merged 2.8 + 2.8b-test so it doesnt matter which version of the site you are presented with, the script should still work // Fixed bug in chrome where show/hide functions were sometimes not working. // Fixed Block + Allow links that were not showing up for certain applications (apps that post as normal FB stories) // Added LG Mobile, Windows Phone, Twitter and Posterous to the default application whitelist // Added hide "Sponsored box" (ads) option // 2.9a 6thApr2010 Fixed bug that was causing Firefox to lock up // 2.9b 9thApr2010 Fixed after blocking an app, not all the onscreen posts by that app would be hidden // Made some performance tweaks to make the script run better // Blocking app no longer requires "hiding" too so removed hideapp function call // Added Snaptu + SonyEricsson Panel + Nokia to default whitelist // 2.9c 15thApr2010 Added Ping.fm to default whitelist // Added a workaround for the bug in firefox which caused the script to fail when cookies are set to: "Keep until:" - "ask me every time" // 2.9d 15thApr2010 Fixed minor CSS style issue // Fixed friend/fan stories getting mixed up again (due to Facebooks code tinkering) // 2.9e 19thApr2010 Fixed bug where the display extras/apps would get screwed up some times // Fixed "allow" and "block app" buttons were not being hidden by default // 2.9f 26thApr2010 Fixed Display bug on custom friends list page. // 2.9g 4thMay2010 Fixed Extras differentiation (friends/fans) // Added wildcard for included pages // Added Gwibber to default whitelist // 2.9h 20thMay2010 Added new "likes website" type story to "became fan of" option // Fixed differentiation between like+became friends (again) // 2.9i 11thJun2010 Fixed Block App function // Added "changed profile info","changed relationship" and "changed profile pic" to the list of hideable extras // Fixed multiple words/phrases in custom text filter for chrome // 2.9j 22ndJun2010 Added option to hide "beta testers" box // Added HTC Sense + Samsung Mobile apps to default Whitelist // 3.0 30thJun2010 Fixed script for latest FB code change // Added visual feedback for "block app" function // Added extra security on domain name parsing // Stopped script from running in frames // 3.1 30thJun2010 Fixed for unforseen bugs // 3.11 9thJul2010 Fixed hide suggestions box (recommended pages + people you may know) // 3.2 5thAug2010 Fixed "Block" and "Allow" (whitelist) buttons, Added windows live messenger + o2 social link to default whitelist // 3.3 20thAug2010 Added new extra: "Checked in to location", addded LG Phone app to default whitelist // 3.4 3rdSep2010 Fixed script to work with facebook's latest code change, added Bloom photo uploader to default whitelist // 3.4a 11thSep2010 Fixed hide "get connected box" option, fixed freezeup in google chrome when creating a new friends list, fixed regex bug in custom text filter // 3.4b 14thSep2010 Fixed hide "get connected box" option again, fixed compatibility with ff4 // 3.4c 22ndSep2010 Fixed hide "get connected box" option again // 3.5 2ndOct2010 The application filter now also hides "friend began using app/game" messages. Custom text filter now tells you which filter was activated when it hides a message // 3.6 7thOct2010 Added new extras "uploaded photo, uploaded video, tagged in video, posted note, tagged in note, posted link" // Added "block app" and "allow app" links for "started using app" type messages // Added Import and Export Settings functionality. // Fixed loss of settings when user clears Firefox's cookies // 3.6a 7thOct2010 Fixed bug with Firefox settings recovery system // 3.7 14thOct2010 Incorporated new "joined group" story type to existing hide "joined group" extra, incorporated new "changed location" story types to existing "changed location" extra, added hide "poke box" option, added new HTC Sense, live journal and hootsuite to default app whitelist // 3.8 20thOct2010 Added options to hide the "questions box", "events box" and "requests box" // 3.8.1 27thOct2010 Fixed: "started using app filter", "hide request box code", added Sony Ericsson X10 mini pro to default application whitelist // 3.8.2 29thOct2010 Fixed: Whitelist + Block App buttons were no longer showing due to a change in facebooks code. // 3.8.3 3rdNov2010 Fixed: Whitelist + Block App buttons were no longer showing due to a change in facebooks code. // Added Yahoo + Sony Ericsson + Vlingo to default whitelist // Added WL (whitelist + BA (Block App) links for messages posted by applications masquerading as "normal" fb status updates // 3.9.0 4thNov2010 Added font size option // 3.9.1 11thNov2010 Streamlined page processing, Fixed font size for group messages, Fixed "needs to access data on all sites" message on google chrome, fixed group wall comments filter, fixed hide questions box option // 3.9.2 15thNov2010 Updated hide sponsored box code, sponsored box should now be hidden on profiles and pages as well as the homepage/newsfeed, added block/whitelist links for photos/notes created uploaded by applications, tidied up code // 3.9.3 19thNov2010 Added script collision detection, to check if 2 versions of the script are running at the same time (script+extension etc) // Altered more font classes to give a more uniform font size across the site. Added Droid + Dell Mobile to default app whitelist // 3.9.4 25thNov2010 Fixed mangled BA + WL links, Fixed "FB-Glitch" error on friends list pages, Hides sponsored box on search pages if option set, Added link to info about AVG clash, Fixed Opera bug with localstorage // 3.9.5 7thDec2010 Added "changed to new profile" stories to "updated profile" filter, added new story code to "updated profile" filter, now hides sponsored box in a few more places, added RockMelt to default app whitelist // 3.9.6 17thDec2010 Added Custom CSS Box, Fixed hide "suggestions" box, Fixed bug with blocking "started using app", Added Friendly for Ipad, Slide, networked blogs, RSS Grafitti, Twitter Feed to default app whitelist // 4.0.0 23rdDec2010 Fixed intermittent app/extra filter problems, fixed bug with "started using app" previously it didnt check if app was in whitelist, added seesmic to app whitelist, fixed autoplay of videos when toggling show/hide // 4.1.0 18thJan2011 NEW: Application message filtering can now be turned off, NEW: Can now block multiple applications at the same time // Hide sponsored box option now hides more ads, Fixed name size on profile pages, Addeed Facebook mobile by Opentech ENG and flipboard to default app whitelist // 4.3.0 27thJan2011 "App + extra" filtering now works on profile pages, tweaked blockallapp function a little bit (scroll to top, single app block) // Added "delete all recent activity" button to profile pages, enabled full screen button for youtube videos, added delete friend request button, added nokia N900,and Ovi by Nokia to default app whitelist // 4.3.1 11thFeb2011 show/hide filters save youtube video's current position, hide sponsored box option now hide ads on new photo lightbox popups, catches more application messages in app filter, fixed del recent activity to work with new https settting, fixed missing info bar on profile pages, fixed anomalous delete button on privacy page, added kodak easyshare,Snaptu for Facebook and Instagram to default app whitelist. // 4.4.0 17thMar2011 fixed commenting ( hitting return/enter in the textarea no longer submits comments, also added comment button back for comments ) // fixed filtering on application/profile pages with photo strip at top, fixed intermittent bug with display of block app/whitelist links, added eBuddy, mobileblog + Rockmelt Beta to default whitelist // 4.4.1 24thMar2011 Fixed block app function. Fixed Delete Recent Activity Function. (Known issue: In FF4 profile page needs to be reloaded to get the "del recent activity" button to show up) // 4.5.0 29thMar2011 Added an option to hide the new Facebook Questions. Fixed Delete Recent Activity Button not showing up in FF4. Fixed "extras" dual story type separation for facebook videos and events. Fixed options screen layout problem on wide screens. // 4.5.1 21stApr2011 Fixed for new Relationship stories and new "Is Using Application" stories // 4.5.2 8thJun2011 fixed block application function, Fixed hide sponsored box code, Fixed a bug with the extras filter, added "no longer listed as" to relationship story filter // 4.5.3 23rdJun2011 fixed fb places checkin anomaly, merged new "commented on a website" story type with "commented on link" // 5.0.0 19thJul2011 added "hide chat" option, added "hide happening now" sidebar option, added "hide commented on event wall" extra option, added "hide page updates" extra option, added "hide commented/liked stories on Top News feed" extra option // 5.1.0 20thSep2011 fixed spaces in application whitelist issue. fixed position of WL + BA links. added "updated school" and "relatives" stories to the updated profile extra filter. added "tagged in a post" stories to "commented/liked status" filter. added "subscribed to" stories to "friends with" extra filter. added windows phone 7, and facebook for windows phone 7 to default whitelist. fixed hiding ads on the photo lightbox // 5.2.0 21stSep2011 fixed for new newsfeed // 5.3.0 22ndOct2011 fixed/ish most extra filters (forced to use text filtering, so it only work on english interface), fixed comment button not showing up on ticker and birthday story popups. fixed ticker frame showing when hidden. fixed "meta.match" popup javascript error. fixed hide events box. Fixed BA + WL links not showing up. // 5.5.0 29thOct2011 fixed various issues with extra filtering, added hide "Shared photo" extra option, ff addon is now restartless and also compatible with seamonkey/iceape // 6.0.0 1stDec2011 fixed shared photo filter, fixed fan page stories filter, updated facebook places (checkins) filter, sped up the filtering a bit, fixed "likes page" filter, fixed event story filters, removed redundant box hiding options, added hide "read an article" option, reduced wall options to single "wrote on wall" option, added basic check for updates button, stopped filtering the current user and fbp's updates, FBP firefox extension is now restartless, FBP should now be compatible with the Seamonkey and Iceape browsers, app whitelist and custom text filter are now textareas and each item now needs to be on a separate line, rather than comma separated. // 6.1.1 9thDec2011 fixed too-wide textareas on options screen, fixed fan page story filter + logged in user filter, added "shared an event" to "created event" filter, fixed attending and attended event filters, improved tabbed textareas differentiation, fixed "friend requested" button being erroneously displayed, fixed "fb glitch" error on friends list pages, fixed "shared a link" filter, fixed upload photo button duplication // 6.3.0 22ndDec2011 added font and background colour options, added hide offline friends in chat option, added separate settings per logged in user, fixed "joined group" filter, fixed "regex error" freezing firefox, fixed https issues with options screen, fixed anomalous "delete" button showing up on timeline page, fixed "liked page" filter,improved fb places filter, added welcome message on first run // 6.4.0 24thDec2011 Fixed filtering to work with international versions of FB, various other fixes. // 6.4.1 26thDec2011 Fixed FB for IE7 Spoofing (to help with disabling Timeline) // 6.4.2 6thJan2012 Fixed Application message filtering. Fixed hidden create album button on group pages. Fixed FB Purity Bar not showing on Friends list feeds. Fixed fbp not working for users with default user icon/pic. Improved welcome page. // 6.4.3 19thJan2012 Fixed story filtering // 6.5.0 6thFeb2012 Added an auto update checker, Fixed comment button on new photo lightbox, Fixed birthday comment flyout button, fixed hide ads on photo lightbox, fixed go online/offline chat button when browser is in IE7 spoof mode, fixed hide events box, fixed a memory leak // 6.6.0 7thFeb2012 Added an option to force the newsfeed to be sorted by most recent, fixed photo comment button for "facebook fan pages" // 6.6.1 20thFeb2012 Added links to new FBP Fan Page on Google Plus to options screen. Turned on "Hide sponsored box" option by default. Added CSS to hide footer in Right hand column. Fixed youtube scrollbars issue, fixed hidden info on fb questions and fb insights when colour options are set // 6.6.2 2ndMar2012 Hides "press enter to submit comment" text when comment button enabled, fixes gap on new group pages when in ie7 spoof mode, fixes comment buttons on photo light box, brought back comments/likes on top news stories option // 6.7.0 28thMar2012 Fixed auto update checker in Firefox, Fixed hide ads in message pages, Fixed comment box growing too big in Safari, fixed hide chat box option, fixed force feed to be sorted by "most recent" option, fixed delete recent activity button // 6.7.1 3rdApr2012 Improved game/application and extra filtering, fixed hidden images at top of group pages if background colour had been set, fixed opera extension // 7.0.0 6thApr2012 Added built in IE7 user agent switch for chrome (for disabling timeline), improved CSS fixes for IE7 spoof mode, improved comment button restoration, improved "extra" filters // 7.1.0 28thApr2012 Fixed hide recent activity button, Fixed comment button on birthday and ticker flyout boxes, If hide "read an article" filter is ticked, it now also hides the "trending articles" box // 7.5.0 10thMay2012 Fixed news article redirects for Trending Articles stories also fixed the hide trending articles box option, added "block application" link to bottom of all facebook application pages, and "block application" button to all facebook application permission request pages, Fixed "BA" (Block Application) and "WL" (Whitelist) links on application posts in the newsfeed // Added a single column Timeline layout option, re-added ability to filter "frictionless sharing / FB actions" stories, Fixed hidden comment button in group welcome box // 7.5.1 25thMay2012 Fixed hiding trending articles option, hide sponsored box option now also hides sponsored stories in the newsfeed, various other minor tweaks and fixes // 7.5.2 14thJun2012 Fixed various extra filters including ('shared photo' and 'uploaded photo'), fixed news article redirects and hide "trending articles / trending videos" // 7.6.0 5thJul2012 Removes all external link redirects, so Facebook cant track them or block them. Adds remove event 'x's on events page (chrome + safari only), highlights applications in app center that request email or posting permissions, fixed block application link on application pages // 7.6.1 1stAug2012 Fixed hide sponsored box // 7.6.2 28thAug2012 Stopped New User screen from popping up when Facebook resets the user settings. Fixed external link interception. Fixed display anomalies in message send window, stopped hidden button from showing in "liked a page" message in ticker. Added extra highlighting/clarity on the App Center permissions section. // 7.8.0 7thSep2012 Fixed the user settings, so facebook cant delete them // Altered block app function to let you block just the app you select, it then asks if you also want to block the other apps // 7.9.0 Fixed shared a link filter, Separated FB Actions/Frictionless sharing apps from the Trending Articles filter, FB Actions/ Frictionless sharing apps should now be filtered by the apps filter // Fixed TL button showing incorrect state after login // 7.9.5 18thSep2012 Fixed comment button (now 2 step submit process), fixed settings bug (facebook was resetting users settings, also clearing browser cookies would reset settings), completely hides sponsored stories from the newsfeed, restored new user greeting // 7.9.6 26thOct2012 Fixed hide trending articles, Fixed link and news article redirection/interception, Fixed filtering on interest lists, Fixed Block App link on permission request pages, Fixed inline youtube video playing on timeline pages, fixed missing images in fbp interface, fixed highlighting on application permission request dialogs // 7.9.7 15thNov2012 Fixed for FF17 (extension), Fixed block application function, added a more prominent block app button to appcenter app pages, fixed application filter + instagram whitelisting, Added FBP Info bar and filtering to game and "page feed", Fixed Fan Page filter, so it doesnt affect "Page Feed" or "Interest Lists", fixed emoticons when font size is altered, fixed app blocking for frictionless sharing apps such as netflix, fixed bug with birthday comment flyout (blue box), changed the default "restore comment buton" option to off., updated new user info page to include info about FBP interest list and page notifications. Added "posted an offer" to sponsored story filter // 8.0.1 30thNov2012 Added options for hiding left hand column links, added "upcoming events" to "hide events box" filter, made font options collapsible, improved ad blocking function // 8.2.0 --thJan2013 Added "Recently Released Albums" to sponsored box filter, fixed Questions filter, fixed "block app" on opera, Added create a group, create a page, and find friends to links you can hide in the left column. Added "Recent Articles About" and "Most Shared on" to trending articles filter, added "play with friends" story filter // redesigned options screen, added lots new options, fixed "drag image into box" covering options screen, cleared out lots of dead code, added option to hide smileys, added fix left column in place option // 8.2.2 13thFeb2013 Fixed slowdown on timeline / like/fan pages. Added hide like suggestions bar, to hide sponsored box option (after you like page, it shows a list of other pages to like). Updated welcome screen to 2 step process. // 8.3.0 21stMar2013 Added Hide "Gifts" and hide Notification Popup Box options, fixed bug in news panel on fbp options screen (bug-if feed was too short, surfaced due to fb post deletions), fixed add block link to fb apps sidebar, fixed hide all videos filter, fixed hidden event page buttons in single column timeline layout mode, improves group story filtering, fixed hidden file upload buttons when background color is set // 8.5.0 24thJun2013 Hide sponsored box option now also Hides the page suggestions on page feed, fixed opera specific bug when certain options were selected, fixed hide emoticons for new "feelings" functionality // Updated for new newsfeed design, Added hide links in right hand column options, Fix saving/retrieving settings. Fixed Timeline cover photo issues. Fixed timeline shift to right on personal timeline pages. Fixed hidden comment button when attaching image to comment. // 8.5.1 27thJul2013 Fixed hide "shared photos" when they are part of a "multi post update", fixed hidden group count and image attach icon when background color was set, updated "changed location" filter to include "is in" and "was in" a location // 8.5.2 14thAug2013 Fixed TL button for new search bar, Fixed hide emoticons option, Fixed line-height in ticker and left column when font is set // 8.5.3 19thAug2013 Fixed Display of FBP info bar + filtering functionality for some users // 8.6.1 23rdAug2013 Faster start up and CSS loading, fixed hide pokes and hide emoticons, fixed intermittent functioning of "restore comment button" option, and intermittent functioning of "fix external link redirection" options // 8.7.0 12thSep2013 Updated FB Gift hiding option, Added "hide tagged in status" option, added app and game filtering in the news ticker to the hide "app / game messages" filter, updated hide sponsored box filter to also hide "similar to" box, updated hide gifts option // 8.8.2 1stOct2013 Added hide sticker packs functionality to sticker store, Improved the force Sort Most Recent function, Fixed "Block application" button wasnt showing in some situations, added BA links to appcenter app listings, fixed hide trending box option, fixed hide like page button for new newsfeed design, fixed sort recent for chinese language // 9.0.0 14thNov2013 Added ex-friend scanner, Added friend whitelist, Fixed for Safari v7, Fixed home button going to app page, when on apps.facebook.com, removed sticker pack functionality, fixed birthday comment box in newsfeed, fixed allowing commas in custom text filter, alphabeticised the leftcolumn links options, added hide "browse" link in left column, fixed app filtering/whitelisting for some users, fixed fan page story filtering for some people, New Chronological Sort function, started working on fixing memory leak // 9.1.0 24thNov2013 Added hide/revert bubble chat to old chat option, fixed bug in friend whitelist feature // 9.2.1 4thDec2013 Fixed hide "bubble chat", Added FBP button in top nav bar, fixed hide "all photos" filter, fixed "shared link" filter, TL Button now only shows on Fan Pages, Added "Liked This" filter, fixed some feed filtering bugs, fixed hide "wrote on wall" posts, fixed hidden audience selector (when hide smileys option set), added check for same font and background colour // 9.3.2 20thDec2013 Added option to disable autoplay of videos in the newsfeed, Added "Display Animated Gifs in newsfeed" option, Improved Deleted Friend Alerts functionality, Fixed hide "wrote on wall" option, Fixed many Safari Issues (Deleted Friend Alerts, Auto Update Notifications, Friends Whitelist) // 9.4.0 30thDec2013 Fixed Restore Comment Button Option, Fixed Disable Autoplay option glitch, Added hide "List Suggestions" option, Fixed the FBP info bar not showing on some friends/interests list pages // 9.5.3 24thJan2014 New open chat/messages in full screen mode option, Fixed Stop External Link Redirection and Tracking function, added option to hide fbpurity news link in left column (also welcome,notes and links), added notifications (counter beneath fbp link) for fbp news stories, fixed filtering for hashtag feeds // 9.6.0 6thFeb2014 fixed program update check for firefox, fixed news update check for safari // fixed hide trending topics option for trending hashtag posts in newsfeed, fixed ads were hidden even if sponsored box option wasnt ticked // fixed game and application filtering including "games you may like" posts, removed hide offline friends in chat option, because it was hiding all friends // 9.7.0 22ndFeb2014 Fixed hide offline friends in chat, Fixed Firefox Sync (and Firebug) Disruption in FF XPI, Fixed hide trending links in newsfeed, Added new FB App "Paper" to default app whitelist, fixed right click and middle click on external links in firefox (when fix links option selected), fixed the default settings on first install werent working properly, fixed wrote on wall filter, fixed sticker store preview button when fullscreenchat option enabled, added Nokia to default whitelist // 9.7.1 13thMar2014 Fixed wrote on wall, improved fbp news notifications responsiveness, hides new recommended games, games you may like and games your friends are playing boxes on the right hand column, fixed inline video play in messages when fullscreenchat option enabled. // Fixed hidden FBP button, moved option screen to left a bit, fixed fbp news notifications issue with daylight savings time adjustment on feed timestamps, fixed "BA" and "WL" links hiding FB dropdown menu. // 9.8.0 27thMar2014 New: Hide List Suggestions, Hide List Header Image, Expand News Column Options (and toggle switch). // 9.8.2 25thApr2014 Fixed Deleted Friend Alert Replay function, Fixed some background colour issues on profile pages, fixed full screen chat option, Fixed "Export Settings" link for Safari // 9.9.1 13thJun2014 Fixed BA + WL links not showing, Fixed various issues with background colour option, Fixed Soundcloud links opening a new tab and on current tab // 9.9.3 23rdJul2014 Fixed FBP link not showing up. Various other fixes, for more info see http://news.fbpurity.com // 9.9.3.1 26thJul2014 Fixed FBP link not showing up in top nav bar for non English (US) users // 10.3.0 13thAug2014 Background image option, freeze top navbar option, top navbar colour, top navbar image, hide home link, hide home link counter, hide left column link counters, hide newssfeed option // (C) stephen fernandez 2009-2014 http://www.fbpurity.com // If you like F.B. Purity please donate, big or small donations, anything is welcome // http://donate.fbpurity.com (function() { var fbpVersion = "v10.3.0"; var debug=0; if(window.location.href.match(/#debug/)) debug=1; var fbpoptsobj = {}; // object to store the preferences etc try { if (window.top!=window.self) // dont run on framed pages if(!window.location.href.match(/connect\/uiserver\.php\?/)) // but allow it to work on embedded permissions pages return; } catch (e) { console.dir(e); //return; //alert('caught error ' + e.message); //unsafeWindow.console.log(e); } // only run on actual facebook pages try { if(!window.location.hostname.match(/facebook\.com$/)) return; } catch(e) { console.dir(e); //alert('caught error ' + e.message); //unsafeWindow.console.log(e); } // set browser type var ischrome=(typeof(chrome)!='undefined' && chrome.extension); var issafari=(typeof(window.navigator.vendor)!='undefined') && (window.navigator.vendor.match(/Apple Computer, Inc\./)) && (window.navigator.userAgent.match(/Version\/(5|6|7|8|9)\./)); var ismaxthon=window.navigator.userAgent.match(/Maxthon/); if(ismaxthon) var maxthonruntime = window.external.mxGetRuntime(); try { var isopera=(typeof(widget) && typeof(widget.preferences)); } catch(e) { var isopera=0; } var isasync=(ischrome || issafari); if (ischrome && (!chrome.runtime)) { // Chrome 20-21 chrome.runtime = chrome.extension; } else if(ischrome && (!chrome.runtime.onMessage)) { // Chrome 22-25 chrome.runtime.onMessage = chrome.extension.onMessage; chrome.runtime.sendMessage = chrome.extension.sendMessage; //chrome.runtime.onConnect = chrome.extension.onConnect; //chrome.runtime.connect = chrome.extension.connect; } //check if another version of the script is running at the same time and if so give a warning. if(document.getElementById('fbpoptslink')) { var collisionerrormsg='Error: You seem to be running 2 versions of FB Purity at the same time, perhaps you are running the addon and the script version, you need to uninstall or disable one of them, otherwise FBP wont function correctly. (More Info)'; if(document.getElementById('fbperrormsg')) document.getElementById('fbperrormsg').innerHTML=collisionerrormsg; else window.alert(collisionerrormsg); } var fbpstyle=document.createElement('style'); var hashead=document.getElementsByTagName('head').length; var fbpfreestyle=document.createElement('style'); // for setting a "global" font etc fbpfreestyle.setAttribute('id','fbpfreestyler'); fbpfreestyle.setAttribute('type','text/css'); var fbpboxstyle=document.createElement('style'); // for setting whether boxes are on or off fbpboxstyle.setAttribute('id','fbpboxstyler'); fbpboxstyle.setAttribute('type','text/css'); var fbpcssstyle=document.createElement('style'); // for adding the user's Custom CSS and general css stuff fbpcssstyle.setAttribute('id','fbpcssstyler'); fbpcssstyle.setAttribute('type','text/css'); var fbptlstyle=document.createElement('style'); fbptlstyle.setAttribute('id','fbptlstyle'); fbptlstyle.setAttribute('type','text/css'); var ncstyle=document.createElement('style'); ncstyle.setAttribute('id','newscolstyle'); ncstyle.setAttribute('type','text/css'); fbpescaperegex = function(str){ // to escape brackets entered in the custom text filter, fixes some problems, but causes others... (users regexes that require brackets wont work, but the number of advanced users who will be using brackets are probably countable on one hand ) var replacements = { '(': '\\(', ')': '\\)', '[': '\\[', ']': '\\]', '{': '\\{', '}': '\\}' } var ret = this; try { for(key in replacements) { str = str.replace('' + key, replacements[''+ key],'g'); } } catch(e) { console.log('error in fbpescaperegex function.'); } return str; }; var fbpoptslist='becamefriends,becamefan,joinedgroup,attendevent,attendedevent,createdevent,commentlikeslink,commentwall,commentgroupwall,commentpagewall,commenteventwall,updatedprofile,changedprofilepic,changedrelationship,suggestionsbox,connectbox,sponsoredbox,pokebox,happeningnowbar,betabox,commentbutton,offlinefriends,offlinemobilefriends,requestsbox,eventsbox,questionsbox,checkedin,uploadedphoto,sharedphoto,uploadedvideo,taggedinvideo,postednote,taggedinnote,commentedonthis,likedthis,postedlink,readarticle,fontfix,fontcolourfix,fontbgcolourfix,fbpfont,fbpfontfix,topnavcolourfix,backgroundimagefix,topnavimagefix,freezetopnav,homelink,homelinkcounter,leftcolumncounters,newsfeed,filterappmessages,recentactivity,chatbox,smileys,fixedleftcolumn,expandnewscolumn,pagestory,sortmostrecent,fixarticleredirects,timelineonecol,upcomingevents,sharedevent,likedlink,sharedpage,commentedlink,likepagebutton,hideallphotos,taggedphoto,likedphoto,commentedphoto,sharedvideo,likedvideo,commentedvideo,youtubevideo,stopautoplayvideo,sharedstatus,likedstatus,commentedstatus,taggedstatus,hideallvideos,hidealllinks,animatedgifs,lcadvertmgr,lcconnect,lcallpages,lcpagesandpublicfigures,lcpagesfeed,lclikepages,lcallapps,lcappcenter,lcevents,lcgamesfeed,lcpokes,lcmusic,lcplaceseditor,lcallgroups,lcallinterests,lccreategroup,lccreatepage,lcfindfriends,lcfindnewgroups,lcdeveloper,lcfriends,lcgifts,lconthisday,lcbrowse,lcfbiphone,lcfbandroid,lcfbpnews,lcwelcome,lcnotes,lclinks,lcoffers,lcmanagegroups,lcsaved,notificationpopup,rcrecommendedpages,rcrelatedgroups,rcpokes,rcbirthdays,rcfriendrequests,rcgamerequests,rclistsuggestions,trendingbox,deletedfriendalerts,bubblechat,fullscreenchat,newstickertextfilter,fulltimestamps,tlgamesapps,tlinvitefriendslikepage,tllikesbox,pymk,nonags,fbpnewsnotifier,listheaderimage,listsuggestions'; //topnavbarcolour,topnavbarcolourfix var fbpoptsarr=fbpoptslist.split(','); var optsdiv=document.createElement('div'); optsdiv.setAttribute('id','fbpoptsdiv'); optsdiv.style.zIndex='155'; optsdiv.style.position='absolute'; //optsdiv.style.left='100px'; optsdiv.style.top='1px'; optsdiv.style.background='white'; optsdiv.style.border='3px solid black'; optsdiv.style.display='none'; // BEGIN new OOP stuff for deleted friends alerts function deletedfriendsalert (theheaderhtml, thefooterhtml) { this.headerhtml = theheaderhtml; this.footerhtml = thefooterhtml; if(typeof(this.headerhtml)=='undefined') this.headerhtml = "F.B. Purity has detected that the following people are no longer in your Friends List:"; if(typeof(thefooterhtml)=='undefined') this.footerhtml = 'Possible reasons for this: They may have \"un-friended\" you / blocked you / temporarily deactivated or deleted their Facebook account, they may have been banned from facebook, it could be a facebook glitch, or you may have removed them from your friends list yourself.

Please note:-

  • Deleted Friends Alerts can be turned off via the FBP Options screen.

  • If you have an extremely large number of friends (over 600 or more) these alerts may report inaccurate results.

  • You can show this alert again after the alert is closed, by pressing the "F" key.

'; if(!document.getElementById('delfriendsalertdiv')) { this.dfa=document.createElement('div'); this.dfa.setAttribute('id','delfriendsalertdiv'); this.dfa.style.zIndex='156'; this.dfa.style.position='absolute'; this.dfa.style.left='300px'; this.dfa.style.top='1px'; this.dfa.style.backgroundColor='white'; this.dfa.style.border='3px solid black'; this.dfa.style.padding='5px'; this.dfa.style.width='300px'; this.dfa.style.display='none'; this.dfa.innerHTML='' + "
" + this.headerhtml + "
" + this.footerhtml + "
"; } else { this.dfa=document.getElementById('delfriendsalertdiv'); document.getElementById('dfabelly').innerHTML=''; } } deletedfriendsalert.prototype = { constructor: deletedfriendsalert, init:function() { if(!document.getElementById('delfriendsalertdiv')) { document.getElementById('content').appendChild(this.dfa); //document.getElementById('dfaheader').innerHTML=this.headerhtml; //document.getElementById('dfafooter').innerHTML=this.footerhtml; } else { this.dfa=document.getElementById('delfriendsalertdiv'); document.getElementById('dfabelly').innerHTML=''; } }, show:function () { window.scrollTo(0,0); document.getElementById('delfriendsalertdiv').style.display='block'; }, hide:function () { document.getElementById('delfriendsalertdiv').style.display='none'; }, addline:function (htmltoadd) { document.getElementById('dfabelly').innerHTML+=htmltoadd; }, reset:function () { document.getElementById('dfabelly').innerHTML=""; } } // END new OOP stuff for deleted friends alerts var fbptips=[ '
 FBP Tip: Want some help with using the Custom Text Filter? Visit the Custom Text Filter Help Section', '
 FBP Tip: Want to further customise Facebook? Check out FBP\'s Custom CSS', '
 FBP Tip: If you have any questions or problems with FBP Check out FBP\'s FAQ / Help Page', '
 FBP Tip: Donations help keep the FB Purity project alive, Please show your support and Donate.', '
 FBP Tip: Want to help test out new versions of FBP before they are officially released? Join the FBP Beta Testing Page.', '
 FBP Tip: Please help me out by telling all your friends about FB Purity: Share FB Purity.', '
 FBP Tip: If you notice your newsfeed is not in chronological order, press the R key and FBP will resort the feed into proper chronological order.', '
 FBP Tip: If you accidentally dismiss a "Deleted Friend Alert" without reading it fully, or just want to see it again you can re-display it by pressing the "F" key.', '
 FBP Tip: You can get FB Purity News via Email, you can also Follow FB Purity News on Twitter and also on Google Plus', '
 FBP Tip: If you hover your mouse over any of the options on the FBP options screen, extra information about that option is usually displayed.' ]; var fbpoptshtml= '
'+ ''+ ''+ '
F.B. Purity Logo' + '

F.B. Purity ' + fbpVersion + ' Options

     ' + '
FBP Home | News | User Guide | Help | Fan Page | Contact | Donate         [ X ]
'+ //'
Click the Like button on the FBP fan page to ensure you get the latest updates and news from the fan page directly in your newsfeed. Check for latest version
Check for latest version of FBP   |   "Like" the FB Purity Fan Page.
'+ ''+ '
'+ // // '
'+ '"; } this.buildTable =function(endmode){ if(typeof endmode=='undefined') return this.table; else return this.table + '
'; // add new dynamic opts function optionsbox(mode) { var table, rowstyle; this.rownum=1; var openallboxes=''; //▼ if (typeof mode !='undefined' && mode=='extras') { this.table=''; } else //this.table="
'+ openallboxes +' Newsfeed Filters  ? Hide
"; this.table=""; // Use tbody to group tables instead of divs ! !!! ! :) this.tableHeader = function (title, hint, varname) { //this.table+='

' + title + '

"; this.table+="
'; } } newoptscolumn=''; // Various Options v = new optionsbox('extras'); v.tableHeader('Various Story Types','Hide Various story types from the newsfeed', 'variousopts'); v.addTableRow('Fan Page Stories','Hide stories posted by Pages you have liked from the newsfeed','pagestory', 'checkbox'); v.addTableRow('Trending Articles / Videos','Hide Trending Articles / Trending Videos / Most Shared on / Recent Articles About stories from the newsfeed','readarticle', 'checkbox'); v.addTableRow('Facebook Questions','Hide Facebook Questions stories','questionsbox','checkbox'); v.addTableRow('Became Friends','Hide Became Friends stories from the newsfeed','becamefriends','checkbox'); v.addTableRow('Changed Relationship','Hide Changed Relationship stories from the newsfeed','changedrelationship', 'checkbox'); v.addTableRow('Changed Location','Hide Changed Location (Check-in) Stories','checkedin','checkbox'); v.addTableRow('Updated Profile Info','Hide Updated Profile Stories','updatedprofile','checkbox'); v.addTableRow('Joined a Group','Hide Joined Group Stories (and other group related stories)','joinedgroup','checkbox'); v.addTableRow('Posted a Note','Hide Posted Note Stories','postednote','checkbox'); v.addTableRow('Tagged in Note','Hide Tagged in Note Stories','taggedinnote','checkbox'); v.addTableRow('Commented on This','Hide Commented on This Stories','commentedonthis','checkbox'); v.addTableRow('Liked This','Hide Liked This Stories','likedthis','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); // Event Options v=null v= new optionsbox(); v.tableHeader('Event Stories','Hide event stories from the newsfeed', 'eventopts'); v.addTableRow('Upcoming Events','Hide Upcoming Events / Upcoming Concerts','upcomingevents','checkbox'); v.addTableRow('Attending Event','Hide Attending Event','attendevent','checkbox'); v.addTableRow('Attended Event','Hide Attended Event','attendedevent','checkbox'); v.addTableRow('Created Event','Hide Created Event','createdevent','checkbox'); //v.addTableRow('Liked Event','Hide Liked Events','likedevent','checkbox'); v.addTableRow('Shared Event','Hide Shared Events','sharedevent','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); // Link / Page Options v=null; v = new optionsbox(); v.tableHeader('Link / Page Stories','Hide Link / Page stories from the Newsfeed', 'linkopts'); //v.addTableRow('Hide All External Links','All External Links from the Newsfeed','hidealllinks', 'checkbox'); v.addTableRow('Liked Page','Hide (Liked / Rated / Recommended) Page Stories','becamefan','checkbox'); v.addTableRow('Shared Page','Hide Shared Page Stories','sharedpage','checkbox'); v.addTableRow('Liked Link','Hide Liked Link Stories','likedlink','checkbox'); v.addTableRow('Shared Link','Hide Shared Link Stories from the Newsfeed','postedlink','checkbox'); v.addTableRow('Commented on Link','Hide Commented on Link Stories','commentedlink','checkbox'); v.addTableRow('"Like Page" buttons','Hide the "Like Page" buttons from shared items in the newsfeed','likepagebutton','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); // Photo Options v=null; v = new optionsbox(); v.tableHeader('Photo Stories','Hide photo stories from the newsfeed', 'photoopts'); v.addTableRow('Hide All Photos','Hide All Photo stories from the newsfeed','hideallphotos', 'checkbox'); v.addTableRow('Shared Photo','Hide Shared Photo / Album stories from the newsfeed','sharedphoto','checkbox'); v.addTableRow('Changed Profile Photo','Hide Updated Profile Picture / Cover Photo stories from the newsfeed','changedprofilepic', 'checkbox'); v.addTableRow('Uploaded Photo','Hide Added Photo Stories','uploadedphoto','checkbox'); v.addTableRow('Tagged in Photo','Hide Tagged in Photo / Album stories','taggedphoto','checkbox'); v.addTableRow('Liked Photo','Hide Liked Photo / Album stories','likedphoto','checkbox'); v.addTableRow('Commented on Photo','Hide Commented on Photo / Album stories','commentedphoto','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); // Video Options v=null; v = new optionsbox(); v.tableHeader('Video Stories','Hide Video stories from the Newsfeed', 'videoopts'); v.addTableRow('Hide All Videos','Hide All Video Stories from the newsfeed','hideallvideos', 'checkbox'); v.addTableRow('Disable Autoplay','Stop videos from playing automatically','stopautoplayvideo', 'checkbox'); v.addTableRow('Shared Video','Hide Shared FB Video Stories from the newsfeed','sharedvideo','checkbox'); v.addTableRow('Uploaded Video','Hide Added Video Stories','uploadedvideo','checkbox'); v.addTableRow('Tagged in Video','Hide Tagged in Video Stories','taggedinvideo','checkbox'); v.addTableRow('Liked Video','Hide Liked Video Stories','likedvideo','checkbox'); v.addTableRow('Commented on Video','Hide Commented on Video Stories','commentedvideo','checkbox'); v.addTableRow('Youtube / Vimeo Videos','Hide Youtube and Vimeo Stories','youtubevideo','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); // Status // Wall Options v=null; v = new optionsbox(); v.tableHeader('Status / Wall Stories','Hide Status / Wall stories from the newsfeed', 'statusopts'); v.addTableRow('Shared Status','Hide Shared Status & Shared Post Stories','sharedstatus','checkbox'); v.addTableRow('Liked Status','Hide Liked Status Stories','likedstatus','checkbox'); v.addTableRow('Commented on Status','Hide Commented on Status stories','commentedstatus','checkbox'); v.addTableRow('Tagged in Status','Hide Tagged in (Status/ Life Event/ Note) Stories','taggedstatus','checkbox'); v.addTableRow('Wrote on Wall','Hide Wrote on Wall Stories (This should work for comments posted to event, page, user and group walls)','commentwall','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable('complete'); newoptscolumn+="" + // right column links options ''+ // left column links options ''; //Timeline Options v=null; v = new optionsbox(); v.tableHeader('Timeline Options','Alter the options for Timeline pages', 'timelineopts'); v.addTableRow('Timeline : Single Column','Lets you view Fan Page Timeline pages in a single column layout. N.B. You can also toggle this setting on and off by clicking the TL button in the top nav bar','timelineonecol','checkbox'); v.addTableRow('Hide Nagging Questions','Hide the nagging questions pestering you to fill in your timeline profile','nonags','checkbox'); v.addTableRow('Hide Games + Apps','Hide Games and App Stories from Timeline pages','tlgamesapps','checkbox'); v.addTableRow('Hide Likes Boxes','Hide the Likes Boxes (including Music, TV Shows, Movies, Books, Sports)','tllikesbox','checkbox'); v.addTableRow('Hide Invite Friends','Hide the "Invite Friends to Like this Page" box','tlinvitefriendslikepage','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); //List Options v=null; v = new optionsbox(); v.tableHeader('List Options','Alter the options for Friend and Interest List Feeds', 'friendlistopts'); v.addTableRow('Hide Random Header Image','Lets you hide the random image displayed at the top of Interest and Friend List feeds','listheaderimage','checkbox'); v.addTableRow('Hide List Suggestions','Lets you hide the List Suggestions box in the right column','listsuggestions','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); //Chat Options v=null; v = new optionsbox(); v.tableHeader('Chat Options','Choose Your Chat Options', 'chatopts'); v.addTableRow('Full Screen Chat','Open Chat/Message Conversations in the Inbox (Full Screen Chat Mode)','fullscreenchat','checkbox'); v.addTableRow('Revert Bubble Chat','Change Bubble Chat Back to the Old Style Chat','bubblechat','checkbox'); v.addTableRow('Hide Offline Friends','Hide Offline Friends in Chat','offlinefriends','checkbox'); v.addTableRow('Hide Offline & Mobile Friends','Hide Offline and Mobile Friends in Chat','offlinemobilefriends','checkbox'); v.addTableRow('Hide Chat Box','Hide the Chat Box','chatbox','checkbox'); v.tableFooter(); newoptscolumn+=v.buildTable(); newoptscolumn+= // fonts and colours section ''+ // top nav bar options ''+ // beta options ''+ //'' + '
Other Options

Hide Right Column Links

Hide Left Column Links

Font, Colour & Design

'+ '' + '' + '' + '' + '' + '' + '

Top Nav Bar Options

'+ '' + '' + '' + '' + '' + '' + '

Beta Options

'+ '' + '' + '
Top NavBar ColourSet
'; // end new options layout fbpoptshtml += newoptscolumn ; loadingfriendlistmsg="Loading friend list..."; deletedfriendsstate=''; fbpoptshtml += ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ //onclick="if (this.checked) if(confirm(\'The Show Animated Gifs option is an experimental feature.\\n\\nBy their nature Animated Gifs can use up lots of CPU cycles, RAM and bandwidth.\\n\\nAre you sure you want to turn this feature on?\')) return true; else return false;" '
More OptionsHide ' + // new custom text filter/ css / app whitelist tabs 'Custom Text Filter - ' + 'Friend Whitelist - ' + 'Application Whitelist - ' + 'Custom CSS
' + 'Enter the words or phrases, on separate lines, that you wish to filter from your news feed. (Text Filter Help)
' + '' + //(window.navigator.userAgent.match(/Mozilla\/4\.0 \(compatible\; MSIE 7\.0\; Windows/) ? '' : '
 FBP Tip: Want to remove Facebook Timeline? Click here.') + fbptips[Math.floor(Math.random() * fbptips.length)] + // !window.require("Env").localeEnv.match(/en_US|en_GB/) ? "" : "

Please note: your Facebook interface language is not set to English, many of FB Purity's functions will only work if you set your Facebook language to English

" + '
'+ '
Beta Tester Box
Further OptionsSet
' + '

'+ '

If you like F.B. Purity and would like to show your appreciation for all the work
I have put into it and also support future development, please make a donation.

' + '
 Please tell all your friends about FBP tooShare on Facebook
'+ '
'+ ''; var fbpfirstrunhtml='
'+ '
X
'+ '
'+ '

Hello there! It looks like this is your first time running F.B. Purity *

'+ '

The functionality of this extension is closely linked to the current design of the Facebook website. When Facebook change the design or functionality of the site, this can sometimes stop F.B. Purity from working correctly.

' + '

In order to keep up to date with news of any changes that may break F.B. Purity and for news of new versions of F.B Purity that fix any problems or add new functionality, it is extremely important that you click the like button for the F.B. Purity Fan page on Facebook (below). By doing this you should receive news of updates directly in your newsfeed, and you will also be able to leave feedback about the extension there too.

Update: Please note, due to Facebook censorship of the FBP fan page, you now also need to subscribe to notifications from the Fan page, otherwise you wont see the FBP news in your newsfeed. To do this, go to the FBP Fan Page, hover over the "Like" button then select "Get Notifications" and you will be notified whenever there is an important update.

'+ '

First Step: Click Like:

'+ '

Next Step: Click here for instructions on how to use F.B. Purity

'+ ''+ '
'; function hideotherdivs(e) { var tastyle=""; divname=e.target.parentNode.id.split(/header/)[0]; var boxlist="custext,friendwhitelist,appwhitelist,custcss"; boxarr=boxlist.split(','); for (i in boxarr) if(boxarr[i]==divname) { document.getElementById(divname + "header").setAttribute('style','background:#ECEFF5; font-weight:bold; font-size:15; border:1 solid'); document.getElementById(divname + "desc").setAttribute('style','display:block;background:#ECEFF5;'); tastyle="display:block;width:404px;height:275px"; if(divname=='friendwhitelist') tastyle+=";overflow-y:auto"; document.getElementById(divname + "ta").setAttribute('style',tastyle); } else { document.getElementById(boxarr[i] + 'header').setAttribute('style','background:white;font-weight:normal;font-size:14;border:0'); document.getElementById(boxarr[i] + 'desc').setAttribute('style','display:none'); document.getElementById(boxarr[i] + 'ta').setAttribute('style','display:none;'); } } function importsettingsbasic(ev) { ev.preventDefault(); fbpsettingstext=prompt('F.B. Purity Settings Importer\n\nPaste in your saved FBP settings text, then click OK.\n\nOr if you want to reset your FBP settings to the defaults, enter the word "Reset" without the quotes.') if(fbpsettingstext==null) return; if(fbpsettingstext.toLowerCase()=="reset") { window.alert('Your settings will now be reset to the installation defaults, and the page will reload.'); fbpsavevalue('fbpoptsjson-' + currentuserid,""); //close prefs screen document.getElementById('fbpoptsdiv').style.display='none'; window.location.reload(true); return; } if(!fbpsettingstext.length) { window.alert('You didnt enter valid settings text'); return; } else { try { JSON.parse(fbpsettingstext); } catch(e) { window.alert('Error, settings text malformed, not valid. Import failed!'); return; } fbpsavevalue('fbpoptsjson-' + currentuserid,fbpsettingstext); window.alert('Import Successful. FBP Settings have been updated! Page will now reload.'); //close prefs screen document.getElementById('fbpoptsdiv').style.display='none'; //reload page to refresh preferences window.location.reload(true); } } function exportsettingsbasic(ev) { ev.preventDefault(); exportsettingsbasic2(); } // figure out how to use callbacks, may be a better solution here.... function exportsettingsbasic2(opts) { document.getElementById('fbpsettingstext').setAttribute('style','display:block;width:600px;height:220px'); var exporttext; if(!opts && opts!='') { if (issafari) exporttext=fbploadvalue('exportfbpoptsjson-' + currentuserid,exportsettingsbasic2); else exporttext=fbploadvalue('fbpoptsjson-' + currentuserid,exportsettingsbasic2); if(exporttext==-999) return } else exporttext=opts; if ((typeof(exporttext)=='undefined') || (exporttext.length =="")) { if (issafari) exporttext=fbploadvalue('exportfbpoptsjson-' + currentuserid,exportsettingsbasic2); else exporttext=fbploadvalue('fbpoptsjson-' +currentuserid,exportsettingsbasic2); // exporttext=fbploadvalue('fbpoptsjson',exportsettingsbasic2); if(exporttext==-999) return; } document.getElementById('fbpsettingstext').textContent=exporttext; window.alert('Copy the FBP settings text from the text box below and save it in a document or text file. If you ever need to restore your settings from that file, simply copy the text from the file, click the Import Settings link and paste the text in.'); // autoselect the text in the textarea el=document.getElementById('fbpsettingstext'); var range; if ((/textarea/i.test(el.tagName)) || ((/input/i.test(el.tagName)) && (/text/i.test(el.type)))) { el.select(); } else if (!!window.getSelection) { // FF, Safari, Chrome, Opera var sel = window.getSelection(); range = document.createRange(); range.selectNodeContents(el); sel.removeAllRanges(); sel.addRange(range); } else if (!!document.selection) { // IE document.selection.empty(); range = document.body.createTextRange(); range.moveToElementText(el); range.select(); } } function get_cookie ( cookie_name ) { var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' ); if ( results ) return ( unescape ( results[2] ) ); else return null; } function set_cookie (name,value) { document.cookie = name+ "=" + escape(value)+ ';expires=01/04/2099 00:00:00'; } // check for GM_set/get API var isgmapi, islocstor; try { if(typeof(GM_setValue)!='undefined') { GM_setValue('test',1) if ( GM_getValue('test')==1) isgmapi=1; else isgmapi=0; } else isgmapi=0; } catch (e) { console.log(e); isgmapi=0; } // check for localstorage try { if(typeof(window.localStorage)!='undefined') islocstor=1; else islocstor=0; } catch(e) { islocstor=0; } function fbpsavevalue(name,value){ if(debug) console.log('fbpsavevalue: ' + name + ' ; ' + value ); try { if(isgmapi) { GM_setValue(name,value+""); // convert value to string, because when we save a numerical date its too big for gm_setvalue which can only store 32bit integers } else if(ischrome) { // ischrome chrome.runtime.sendMessage({method: "setLocalStorage", key: name, value: value}, function(response) { ;//console.log(response.data); }); } else if(issafari) { safari.self.tab.dispatchMessage("setLocalStorage",{key: name, value: value}); } else if(isopera) { widget.preferences[name]=value; } else if(ismaxthon) { maxthonruntime.storage.setConfig(name, value); } /* if i support localstorage and cookie, the user will repeatedly get the new user screen when the cookies are cleared, so lets comment this out else if(locstor) { window.localStorage[name]=value; } else set_cookie(name,value); */ } catch (e) { // if(debug) //console.log(e); if(islocstor) window.localStorage[name]=value; else set_cookie(name,value); } } if(issafari) { function replyToMessage(response) { if(debug) { console.log(response.message); console.log(response.name); console.dir(response.message); } if(response.name == "fbpfirstrun") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); fbpfirstruncheck(response.message[1]); } else if(response.name == "fbplastupdatecheck") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); checkupdatefeed(response.message[1]); } else if(response.name == "fbpoptsjson") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); fbpgetprefs(response.message[1]); } else if(response.name == "exportfbpoptsjson") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); exportsettingsbasic2(response.message[1]); } else if (response.name == "lastfriendcheck") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); lastfriendcheckfunc(response.message[1]); } else if (response.name == "oldfriendstore") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); graboldfriendstore(response.message[1]); } else if (response.name == "deletedfriendstore") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); dspdeletedfriendalert(response.message[1]); } else if (response.name == "lastnewscheck") { if(debug) console.log(response.message[0] + ' : ' + response.message[1]); checkforlastnewsupdate(response.message[1]); } else if (response.name == "reset-lastnewscheck") { if(debug) { console.log('we in reset-lastnewscheck'); console.log(response.message[0] + ' : ' + response.message[1]); } resetnewscounter(response.message[1]); } } // register for message events safari.self.addEventListener("message", replyToMessage, false); } function fbploadvalue(name,funct){ if(debug) console.trace(); //console.log('entering function : ' + arguments.callee.name); try { if(isgmapi) { val = GM_getValue(name); } else if(ischrome) { // Chrome Extension chrome.runtime.sendMessage({method: "getLocalStorage", key: name}, function(response) { //fbpdynamicreload(response.data); if(funct) { if(debug) console.log("we in call back, and heres the data: " + response.data); if((typeof(response)=='undefined') || (typeof(response.data)=='undefined')) funct(''); else funct(response.data); } //} }); val=-999; if(debug) console.log('name: ' + name + ' value' + val); } else if(issafari) { // Safari Extension safari.self.tab.dispatchMessage("getLocalStorage",name); val=-999; } else if(isopera) { if((typeof(widget.preferences[name]) !='undefined') ) { val = widget.preferences[name]; //fbpdynamicreload(); } else val=''; } else if(ismaxthon) { val = maxthonruntime.storage.getConfig(name); } } catch (e) { console.dir(e); if(islocstor) val=window.localStorage[name]; else val=get_cookie(name); } return val; } function initundef() { if(typeof (fbpoptsobj.filterappmessages) =='undefined') fbpoptsobj.filterappmessages=1; if(typeof (fbpoptsobj.sortmostrecent) =='undefined') fbpoptsobj.sortmostrecent=0; if(typeof (fbpoptsobj.fixarticleredirects) =='undefined') fbpoptsobj.fixarticleredirects=1; if(typeof (fbpoptsobj.deletedfriendalerts) =='undefined') fbpoptsobj.deletedfriendalerts=1; if(typeof (fbpoptsobj.fbpnewsnotifier) =='undefined') fbpoptsobj.fbpnewsnotifier=1; } function fbpgetprefs(opts) { if(debug) { console.trace(); console.log(arguments.callee.length); console.log(opts); //console.log('entering function : ' + arguments.callee.name); } var optsdump; if(typeof(opts)!='undefined') { if(opts && opts.length) { if(debug) console.log("opts=" + opts); optsdump=opts; try { fbpoptsobj=JSON.parse(optsdump); } catch(e) { console.log('error reading json in fbpgetprefs'); console.dir(e); return; } initundef(); initstage2(); finalstage(); } else { if(debug) console.log('are we at the top?'); //if(!issafari) // because getting vars out of localstorage is not working in safari, we not checking for first run // fbpfirstruncheck(); fbpoptsobjinit(); initundef(); initstage2(); finalstage(); } } else { //console.log("user" + currentuserid); optsdump = fbploadvalue('fbpoptsjson-' + currentuserid,fbpgetprefs);//'fbpgetprefs' if(optsdump!=-999) { //if(!isasync) { if(optsdump && optsdump.length) { try{ fbpoptsobj=JSON.parse(optsdump); } catch(e) { fbpoptsobj=JSON.parse(decodeURIComponent(optsdump)); // this line is to make it compatible with older firefox extension which urlencoded/decoded saved values inside the extension } initundef(); initstage2(); finalstage(); } else { if(debug) console.log('are we at the bottom?'); //if(!issafari) // because getting vars out of localstorage is not working in safari, we not checking for first run // fbpfirstruncheck(); fbpoptsobjinit(); initundef(); initstage2(); finalstage(); } } } //unsafeWindow.console.log(typeof(optsdump) + ' xxx ' + optsdump + 'xxx' + optsdump.length); } function suggestDonation (fbpaskedfordonation) { if(typeof (fbpaskedfordonation)=='undefined') { fbploadvalue("fbpaskedfordonation",suggestDonation); return; } if(fbpaskedfordonation) { if(debug) console.log('have shown donation screen before'); return; } else if (confirm("Hello from FB Purity!\n\nI'm just letting you know that its been 2 months since you first installed FB Purity, I hope you are enjoying using it :)\n\nI first started work on FB Purity in March 2009, it is the product of many years of hard work, and takes a lot of time and effort to keep it running.\n\nWould you like to donate to help support FB Purity and keep the project going?\n\nIf you have already donated, can't or don't want to donate, click 'Cancel', otherwise please click 'OK' to open the donation page in a new browser tab.\n\nCheers,\n\nSteve (The FBP Developer)")) { window.alert('Excellent, Thanks! Opening the FB Purity Donations page...'); fbpsavevalue('fbpaskedfordonation','1'); window.open('http://donate.fbpurity.com'); } else { if(debug) console.log('Didnt want to / couldnt donate, or already donated...'); fbpsavevalue('fbpaskedfordonation','1'); } } function mdiff(to,from) { var months = to.getMonth() - from.getMonth() + (12 * (to.getFullYear() - from.getFullYear())); if(to.getDate() < from.getDate()){ months--; } return months; } function fbpfirstruncheck(result) { if(debug) { console.trace(); console.log('firstrun? ' + result); } //console.log('entering function : ' + arguments.callee.name); var fbpfirstrun; //alert("firstres = " + result); //if(result || (result=='')) { was working on chrome and firefox and opera? if(typeof(result)!='undefined') { fbpfirstrun=result; } else fbpfirstrun=fbploadvalue('fbpfirstrun',fbpfirstruncheck); if(fbpfirstrun==-999) return; //alert("secondres = " + fbpfirstrun); // make sure user is logged in (pageLogo element is there) if (((fbpfirstrun=='') || (typeof(fbpfirstrun)=='undefined') || (fbpfirstrun==null)) && (!(window.location.href.match(/^https?:\/\/apps\.facebook|^https?:\/\/blog\.facebook|^https?:\/\/secure\.facebook/)))) { if(!document.getElementById('fbpfirstrundiv') && document.getElementById('blueBar') && document.getElementById('pageLogo')) { ph=document.getElementById('blueBar'); //pageHead firstrundiv=document.createElement('div'); firstrundiv.innerHTML=fbpfirstrunhtml; if(ph.firstChild) ph.firstChild.parentNode.insertBefore(firstrundiv, ph.firstChild.nextSibling); fbpsavevalue('fbpfirstrun',new Date() + ""); } } else if(fbpfirstrun.length) { if(debug) console.log("FBP was first installed in this browser on: " + fbpfirstrun + " Which was " + mdiff(new Date(),new Date(fbpfirstrun)) + " months ago."); if(mdiff(new Date(),new Date(fbpfirstrun))>2) { if(debug) console.log('it was over 2 months ago since first installation'); suggestDonation(); } } } function checkifupdaterequired(currver,latestver) { if(debug) console.trace(); //console.log('versions ' + currver,latestver); //console.log('entering function : ' + arguments.callee.name); if (currver && latestver) { var fbpupdatehtml = "**Update** "; if (currver==latestver) return; //window.alert('Congrats! You have the latest version of FB Purity :)'); else { cvpart1=currver.split(/\./)[0]; cvpart2=currver.split(/\./)[1]; cvpart3=currver.split(/\./)[2]; lvpart1=latestver.split(/\./)[0]; lvpart2=latestver.split(/\./)[1]; lvpart3=latestver.split(/\./)[2]; if(parseInt(cvpart1)=0;i--) for(i=0;i div, #fbProfilePicSelector > div > a, div.friendName, body.timelineLayout div.fbPhotoCurationControlWrapper div, div[role="article"] *, div.userContentWrapper a i, #stream_pagelet div.clearfix a, #notifications_stream * {background-color:transparent !important} .fbQuestionsPollResultsBar .shaded, .bar {background-color: #6C83B2 !important} .tagName, ol.balancingCapsule, div.fbTimelineFilters, ol.fbTimelineCapsule {background-color: ' + fbpoptsobj.fontbgcolour + ' !important} .hasSmurfbar #blueBarHolder #blueBar {background-image:url("") !important} /* like button: */ div._55k4, /*camera icon under composer*/ div._3jk , /* profile pic*/ i._96h, /* group count in left column*/ div.-cx-PRIVATE-blendedBookmarksNonLitestand__bookmark, div._5duc, div[data-reactid], #fbTimelineHeadline div.actions, #fbTimelineHeadline div.actionsDropdown, div.cover *, div.fbPhotoCurationControl {background-color:transparent !important} /* attach image to comment icon*/ i.UFICommentPhotoIcon {background-color:grey !important} form.fbCalendarActions a[role="button"], div.fbCalendarHeader a[role="button"],div.fbCalendarHeader button {background-image: none} body.timelineLayout a.friendHovercard .name { background-color: rgba(255,255,255,0.2) !important} div#fbProfileCover *, div[data-ft=\'{"tn":"H"}\'] i {background-color:transparent !important} div#fbProfileCover span, div#fbProfileCover div.fsxxl {background-color: rgba(149,149,149,0.3) !important} #blueBar {background-image:none !important } #blueBarNAXAnchor {background-image:none !important}'; if(fbpoptsobj.fontcolourfix) fbpfreestyle.textContent += ' a[href*="?sk=insights§ion=navPosts"] {color:' + fbpoptsobj.fontbgcolour + " !important}"; } // #photos_snowlift div.snowliftOverlayBar (photo info bar in theatre mode, if font colour is set, we may need to change colour of this bar, maybe transparent white) // fix font if(fbpoptsobj.fbpfontfix==1) { fbpfreestyle.textContent +=' * {font-family:' + fbpoptsobj.fbpfont + ' !important}'; //fbpfreestyle.textContent +=' @import url(http://fonts.googleapis.com/css?family=' + fbpoptsobj.fbpfont.replace("'",'','g').replace(/'"','','g'/).replace(/ /,'','g') + ') \n\n* {font-family:' + fbpoptsobj.fbpfont + ' !important} '; } // freeze top navbar if(fbpoptsobj.freezetopnav) { fbpfreestyle.textContent +=' #blueBarNAXAnchor {position:fixed !important}'; } // top navbar colour if(fbpoptsobj.topnavcolourfix==1 && (typeof(fbpoptsobj.topnavcolour)!="undefined") && (fbpoptsobj.topnavcolour!="")) fbpfreestyle.textContent +=' #blueBarNAXAnchor {background-color:' + fbpoptsobj.topnavcolour + ' !important ; background-image:none !important} '; // top nav background image var tmpnavbarbgimg; if(fbpoptsobj.topnavimagefix==1 && (typeof(fbpoptsobj.topnavimage)!="undefined") && (fbpoptsobj.topnavimage!="")) { if(!fbpoptsobj.backgroundimage.match(/^https\:\/\//)) tmpnavbarbgimg='https://www.fbsbx.com/animated.php?url='+fbpoptsobj.topnavimage; else tmpnavbarbgimg=fbpoptsobj.topnavimage; fbpfreestyle.textContent +=" #blueBarNAXAnchor { background-image:url('" + tmpnavbarbgimg + "') !important; }"; } // background image var tmpbgimg; if(fbpoptsobj.backgroundimagefix==1 && (typeof(fbpoptsobj.backgroundimage)!="undefined") && (fbpoptsobj.backgroundimage!="")) { //fbpfreestyle.textContent +=" body, #contentCol { background-image:url('https://www.fbsbx.com/animated.php?url=" + fbpoptsobj.backgroundimage + "') !important} li.sideNavItem, div.homeSideNav {background-color:rgba(255,255,255,0.2)} a.fbxWelcomeBoxName, #pagelet_bookmark_nav h4.navHeader, div[id*='PageScrubberPagelet_'] {background-color:rgba(255,255,255,0.3)}"; if(!fbpoptsobj.backgroundimage.match(/^https\:\/\//)) tmpbgimg='https://www.fbsbx.com/animated.php?url='+fbpoptsobj.backgroundimage; else tmpbgimg=fbpoptsobj.backgroundimage; fbpfreestyle.textContent +=" body { background-attachment: fixed !important; background-image:url('" + tmpbgimg + "') !important} #contentCol {background-color:transparent !important} li.sideNavItem, div.homeSideNav, div[id*='PagePostsSectionPagelet'] a.uiMorePagerPrimary, #timeline_tab_content_extra a.uiMorePagerPrimary, #sideNav, #switchsortmsg {background-color:rgba(255,255,255,0.4)} #pagelet_welcome_box a, #pagelet_bookmark_nav h4.navHeader, div[id*='PageScrubberPagelet_'], #fbxPhotoContentContainer div.photoDetailsContainer, #pageFooter div[role='contentinfo'],#fbPhotoPageHeader a, #fbPhotoPageHeader .uiHeaderTitle, #rightColContent ul.fbTimelineScrubber {background-color:rgba(255,255,255,0.5)} #fbxPhotoContentContainer td.stageContainer {background-color:rgba(255,255,255,0.2)} #fbxPhotoContentContainer div.fbPhotoContributor>div {background-color:white} div[id*='PageScrubberPagelet_'] * {color:#333} #sideNav h4.navHeader>a, #event_left_navigation h4.navHeader, #pagelet_welcome_box a.fbxWelcomeBoxName {color:black} #event_this_week_nav a, #event_this_week_nav span, #rightColContent ul.fbTimelineScrubber a, div[id*='PagePostsSectionPagelet'] a.uiMorePagerPrimary, #timeline_tab_content_extra a.uiMorePagerPrimary, #sideNav div.bookmarksNavSeeAll, #pagelet_main_column_personal li.sideNavItem *, #pagelet_main_column_personal div.actionLinks * {color:#141823}"; //#fbPhotoPageCaption, #fbPhotoPageAuthorName, #fbPhotoPageFeedback, #fbPhotoPageTagList, // div[id*='PageHeaderPageletController_'] span (text heading on cover image for fan pages) } // hide newsfeed if(fbpoptsobj.newsfeed) { fbpfreestyle.textContent +=' #stream_pagelet {opacity:0}'; } // hide home link if(fbpoptsobj.homelink) { fbpfreestyle.textContent +=' #pagelet_bluebar a[data-gt*="home_chrome"] {display:none}'; } // hide home link counter if(fbpoptsobj.homelinkcounter) { fbpfreestyle.textContent +=' #pagelet_bluebar a[data-gt*="home_chrome"] div {display:none}'; } // hide left column counters if(fbpoptsobj.leftcolumncounters) { fbpfreestyle.textContent +=' span.uiSideNavCount, #sidebar_navigation_top a div > div {display: none !important}'; } if(fbpoptsobj.likepagebutton==1) { fbpfreestyle.textContent +=' div.uiStreamShareLikePageBox div.uiPageLikeButton, div.genericStreamStory a.PageLikeButton, div[data-dedupekey] span.PageLikeButton, div.shareFooter .shareLikeButton, #pagelet_litestand_section a.PageLikeButton, div.shareRedesign label.PageLikeButton, div.userContentWrapper button.PageLikeButton {display:none} '; // #pagelet_main_column_personal label.PageLikeButton } lcoptsarr="lcadvertmgr,lcconnect,lcallpages,lcpagesandpublicfigures,lcpagesfeed,lclikepages,lcallapps,lcappcenter,lcevents,lcgamesfeed,lcpokes,lcmusic,lcplaceseditor,lcallgroups,lcallinterests,lccreategroup,lccreatepage,lcfindfriends,lcfindnewgroups,lcdeveloper,lcfriends,lcgifts,lconthisday,lcbrowse,lcfbiphone,lcfbandroid,lcfbpnews,lcwelcome,lcnotes,lclinks,lcoffers,lcmanagegroups,lcsaved,rcrecommendedpages,rcrelatedgroups,rcpokes,rcbirthdays,rcfriendrequests,rcgamerequests,rclistsuggestions".split(','); for(b=0;b