This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Manually Adding Domains to the Whitelist
Sean McGregor edited this page Jan 11, 2013
·
4 revisions
If you want to play with your own content server before we finish Masked, this is the guide for you. Each of the extensions comes with a content script called privly.js. This Javascript file contains a regular expression:
privlyReferencesRegex: new RegExp(
"\^(https?:\\/\\/){0,1}(" + //protocol
"priv\\.ly\\/|" + //priv.ly
"dev\\.privly\\.org\\/|" + //dev.privly.org
"localhost\\/|" + //localhost
"privlyalpha.org\\/|" + //privlyalpha.org
"privlybeta.org\\/|" + //privlybeta.org
"localhost:3000\\/" + //localhost:3000
")(\\S){3,}$","gi"),
If your domain is yourdomain.com, you only need to add:
"yourdomain.com\\/|" +
like so:
privlyReferencesRegex: new RegExp(
"\^(https?:\\/\\/){0,1}(" + //protocol
"yourdomain.com\\/|" +
"priv\\.ly\\/|" + //priv.ly
"dev\\.privly\\.org\\/|" + //dev.privly.org
"localhost\\/|" + //localhost
"privlyalpha.org\\/|" + //privlyalpha.org
"privlybeta.org\\/|" + //privlybeta.org
"localhost:3000\\/" + //localhost:3000
")(\\S){3,}$","gi"),
Foundation Home
Repository List
Development Mailing List
Testing Mailing List
Announcement Mailing List
Central Wiki
Submit a Bug
IRC
Download Extension
These documents are under active development and discussion.
Credit: This Google Summer of Code content is licensed under the CC Attribution-Noncommercial-Share Alike 3.0 Unported license furnished by the Sahana Software Foundation.