From bca69bc2e499f9b1428233c66e2b3a0b4df30a3e Mon Sep 17 00:00:00 2001 From: Qixuan Zhang Date: Thu, 16 Oct 2014 21:42:25 -0700 Subject: [PATCH] nit --- README.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index b4ce3dd..d8a061e 100644 --- a/README.md +++ b/README.md @@ -3,58 +3,58 @@ Boundary Boundary is a CSS+Javascript library for Chrome extension developers to easily create HTML elements that won’t affect or be affected by the current webpage’s CSS. Strongly recommended if you are considering adding a sticker, a sidebar or any overlay box using content script. -/******************************** install boundary - manifest.json ********************************/ - -"content_scripts": [{ - "matches": ["http://*/*", "https://*/*"], - "css": [ - "boundary/boundary.css", - "your-stylesheet-for-boxes.css" - ], - "js": [ - "boundary/jquery.js", - "boundary/boundary.js", - "your-content-script-javascript.js" - ], - "all_frames": false -}], -"web_accessible_resources": [ - "boundary/boundary-extra.css", - "your-stylesheet-for-elements-within-box-one.css" -], + +/******************************** install ********************************/ + +Take a look at Sample manifest.json. + /******************************** create a box ********************************/ Boundary.createBox(attrs); + /******************************** remove a box ********************************/ $(boxSelector).remove(); + /******************************** style elements within a box ********************************/ Boundary.loadBoxCSS(boxSelector, CSSPath); + /******************************** find/modify a specific boxe ********************************/ Boundary.rewriteBox(boxSelector, HTML); + Boundary.appendToBox(boxSelector, HTML); + Boundary.prependToBox(boxSelector, HTML); + /******************************** find/modify elements within all boxes ********************************/ Boundary.find(elemSelector); + Boundary.rewrite(elemSelector, HTML); + Boundary.append(elemSelector, HTML); + Boundary.prepend(elemSelector, HTML); + /******************************** find/modify elements within a specific box ********************************/ Boundary.findElemInBox(elemSelector, boxSelector); + Boundary.rewriteElemInBox(elemSelector, boxSelector, HTML); + Boundary.appendToElemInBox(elemSelector, boxSelector, HTML); + Boundary.prependToElemInBox(elemSelector, boxSelector, HTML) + /******************************** helpers ********************************/ Boundary.findBoxBody(boxSelector); \ No newline at end of file