How to Edit the Facebook Purity Whitelist
By default FBpurity allows the following "external" applications to post messages to your homepage: "FB Iphone app", "Selective Twitter" and a few other useful "non spammy" apps, you can see the full list in the script if you are curious.
You can edit or add/remove applications to and from this list quite easily, you just need to know the application ID of the app you want to whitelist. You can find its ID by going to the application's homepage, by clicking the applications icon, then looking at the URL (a.k.a web address). The applications ID is the numerical bit after "application.php?id="
e.g say i wanted to add the "Honesty Box" application to the whitelist, i would go to the "Honesty Box" application page, and look at the URL, which should look something like :
"http://www.facebook.com/apps/application.php?id=2552096927&ref=nf"
well the ID for that application would be : 2552096927
If the application page URL doesnt have an ID in it, go to the applications Wall or Info page, that page should have the application's ID in it. Or failing that, look for the "Block Application" link, the application ID will be definitely be embedded in that link. Another place to look for the application ID is in the "posted via someapplication" link at the bottom of the application post in your feed, if you hover your mouse over that link, it will probably display the application ID in the status bar (the bottom right hand corner of your browser)
Now to edit the script. If you are using Firefox you need to open the "Manage User Scripts" window, you can access this via the Firefox "Tools/Greasemonkey/Manage UserScripts" menu. Select "Facebook Purity" in the left hand column, then click the "Edit" button, this should open the script in a text editor. Now look for the line that looks like :
var userappwhitelist="";
This is going to be where you add your "whitelist" or list of applications (ids) that Facebook Purity will allow to display messages on the homepage. Make sure that the application IDs you add between the quote marks are separated by a comma (no spaces) and the line ends in "; as above.
Heres an example of what your userappwhitelist variable might look like after you have added two application IDs
var userappwhitelist="662837,795461";
Once you have finished adding your application IDs to the whitelist, save the file.
Now go back to your facebook homepage and reload the page, the changes you have made should work straight away.
To edit the script in Chrome, Opera or Safari you first need to find the scripts directory on your computer, once there, just open the script in a simple text editor, edit as described above, and save it, and thats it.
If this script has helped you out, why not thank the author, by making a donation, big or small, anything is welcome.
N.B If you are using firefox and click the edit button and a "file open" dialog box appears, it means you need to locate the text editor you wish to use, in your file system. If you are using Windows XP or Vista, you can choose "notepad" which is located at C:\Windows\system32\NOTEPAD.exe
In Windows 7, "notepad" is located at C:\windows\syswow64\notepad.exe
In Windows 2000, "notepad" is located at C:\Winnt\system32\NOTEPAD.exe
If you are using an Apple Mac the text editor is located at /Applications/TextEdit.app
If you are using Ubuntu the text editor is located at /usr/bin/gedit
other Linux distributions will probably have a similar editor in the /usr/bin/ directory.
N.B If nothing happens when you click the edit button or if you want to change the default editor, then you need to follow these steps:
- type about:config in the firefox address bar and press enter.
- type greasemonkey in the filter box at the top of the page
- right click on greasemonkey.editor and click Modify
- now enter the path to the text editor application you want to use (see above for examples)
- thats it, from now on, when you click edit in the manage userscripts menu, the script should open in your chosen editor.
Locating and Editing the Script in Google Chrome v4
Here is how to find the script in order to be able to edit it In Google Chrome v4.- Go to the Extensions page, via the Extensions Menu
- Click "Developers Mode" at the top right of the page
- Take note of the random string of letters beneath Facebook Purity, as that is the internal codename for the script
- In Windows XP the script will be located at:
C:\Documents and Settings\your pc username\Local Settings\Application Data\Google\Chrome\User Data\Default\Extensions\string of random letters as displayed on the extensions page\1.0\script.js
In Windows Vista / 7 the script will be located at:C:\Users\your pc username\AppData\Local\Google\Chrome\User Data\Default\Extensions\string of random letters as displayed on the extensions page\1.0\script.js
In MacOS X the script will be located at:~/Library/Application Support/Google/Chrome/Default/Extensions/string of random letters as displayed on the extensions page/1.0/script.js
In Linux the script will be located at:~/.config/google-chrome/Default/Extensions/string of random letters as displayed on the extensions page/1.0/script.js
Once you have finished editing, and saved the script file, in order to see the effect of the changes you have made you either need to close and restart Chrome, or more conveniently, you can go to the Extensions page, disable and re-enable the Facebook Purity extension.
See also : Editing the Facebook Purity "Extras" list
If you like the script, please make a donation to show your appreciation of all the hard work i have put into developing this and keeping it running.
