-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,249 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
THEME_PRIMARY="#d32228" | ||
THEME_PRIMARY_DARK="#7e1317" | ||
THEME_PRIMARY_LIGHT="#ed4047" | ||
THEME_PRIMARY_LIGHT="#ed4047" | ||
THEME_NEUTRAL="#323130" | ||
THEME_NEUTRAL_LIGHT="#656462" | ||
THEME_NEUTRAL_DARK="#1F1E1D" | ||
SETTINGS_INFORMATION="<h2>BAAT</h2><div>Bookmarklet Accessibility Audit Tool v@VERSION@</div><p>BAAT is a tool for running automatic accessibility testing scripts directly in the browser and inspecting the results.</p><p>You can find the documentation on the <a href='https://github.com/mindscreen/baat'>BAAT GitHub Page</a>.</p>" | ||
AXE_MIN_URL="https://cdn.jsdelivr.net/npm/axe-core/axe.min.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
" ADD_DATE="{timestamp}">BAAT</A> | ||
</DL><p> | ||
</DL><p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE NETSCAPE-Bookmark-file-1> | ||
<!-- This is an automatically generated file. | ||
It will be read and overwritten. | ||
DO NOT EDIT! --> | ||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | ||
<TITLE>Bookmarks</TITLE> | ||
<H1>Bookmarks</H1> | ||
<DL><p> | ||
<DT><H3 ADD_DATE="1633626970" LAST_MODIFIED="1680519255" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3> | ||
<DL><p> | ||
<DT><A ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAC+klEQVR4AayVA7ilXBhGv2vjt23btm3btm1zbNu2bds2w0ZnDToaXj4r17uqTbm7glSOIPiKNygsS4xcnuePuGDTTMeqdTxa6vhd3krHuOuiAjIDczGv4xvzEyklx4MPjfkwcjzAgaHgaNgP4WI2av13SXHzuWeuR0glCLggFFxsghQE4Vx8w0t3C9lcyXN8yz/U2MrffMOzXE7W3cL9xl6NbGeNx+2h4CpPCyH3EgTuaKuVmel09RvabflGtps/y1HWKneI1S8iUZa53BsKLlcmvJRPMzyqcxkZyE5kcgU1UTQiL3plpcddoeBEKERIoSvjOBbZCycwibYIQgom4OJQkBWYixEeYg2HIiVwJOu5GyFRC1vZPOFDhFb8iSCcxmAcRnMfEuUJxuHQlxMRhGo0QngOZ1G8IfHhNE+YziMIWcykHpfyGQ7vIAjfsoH3uZSmTCYD4WkmIAz0g18SgoOMfwczeAjhQiaShSDchksRh6C5AkHIZSpnIzzJBC4lsByb1JmCb5brzzkBSSIXhyIOZDPpSBKn8AGztP5/h97InV5kWKQISYaM+DaZHHpE/Ah3JAlIc2f/FhnBDC5ESuB0xjKZKhF3BqkJwb0bVQHZ/I+hOZeRuofw+dRD04ACinEUt8cFqkVtGz5yNs1QLKUZH/E0d3Apl3A7T/I+jVmApR2XRGWNjGoUFZCiN9+GxCniQf6iFxNYjIfPEibSl/94jP2QOHejNsQEh8GhSBk5CuCAUHCFMillFqQl9YXbVnlC2dngc2MouHWzqWsnOCPcb9kPKYED+IGR7ninVuCamOAWs0I34TXe9yauVWche+F8Nmh3LO/yhm5mVsYE6fHRNkVXX6GKkT2wH2uV+StpdM7YZWIh3Zv4vz2RZnqDv9r/w2aTzZ92tb/Bb6qPp5Zxx5BawszErcoq43XhZu7xFrTXnbQ3n7u5xevmG2O5ocSpjdRgKs9Fj481m/RGtkwBykv7ewWz3sBW73Aj10H/vZB4PDSpXCmEABekxWTM//65AAAAAElFTkSuQmCC" HREF="javascript:/*BAAT v{baat.version}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
const Transform = require("stream").Transform; | ||
|
||
function encodeRFC3986URIComponent(str) { | ||
return encodeURIComponent(str).replace( | ||
/[!'()*]/g, | ||
(c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, | ||
); | ||
} | ||
|
||
const URLEncoder = () => { | ||
return new Transform({ | ||
readableObjectMode: true, | ||
writableObjectMode: true, | ||
|
||
transform: function (chunk, encoding, callback) { | ||
if (chunk.isNull()) { | ||
return callback(null, chunk); | ||
} | ||
const content = String(chunk.contents) | ||
|
||
chunk.contents = Buffer.from(encodeRFC3986URIComponent(content)); | ||
|
||
callback(null, chunk); | ||
}, | ||
}); | ||
} | ||
|
||
module.exports = URLEncoder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.