Skip to content

Commit d4367f0

Browse files
authored
Merge pull request #159 from codeforbtv/transfer-updates
Remove VT Courts Online code
2 parents f8fcf3a + be5e431 commit d4367f0

File tree

10 files changed

+2426
-1427
lines changed

10 files changed

+2426
-1427
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
This project originated as a way for Vermont Legal Aid (VLA) to generate petitions more quickly during their expungement clinics.
44

5-
VLA runs free clinics throughout the year, but copying information off state databases and filling out petitions by hand is slow. By creating a chrome extension that generates printable files at the push of a button, volunteer attorneys help more people clear their records in every clinic.
5+
VLA runs free clinics throughout the year, but copying information off state databases and filling out petitions by hand is slow. By creating a chrome extension that generates printable files at the push of a button, volunteer attorneys help more people clear their records in every clinic.
66

77
# The Chrome extension
88

99
[<img src="https://uploads-ssl.webflow.com/5f4f5872323e026126988212/5f56321f2220c927ad18423e_ChromeWebStore_BadgeWBorder_v2_496x150.png" width=300/>](https://chrome.google.com/webstore/detail/expungevt/kkooclhchngcejjphmbafbkkpnaimadn)
1010

11-
Printable petitions are generated using an extension for the Chrome browser.
11+
Printable petitions are generated using an extension for the Chrome browser.
1212

1313
The extension essentially reads and (temporarily remembers) info as an attorney browses through case records. This information is automatically inserted into the specified petitions and a printable webpage is generated. The attorney can correct common data errors, insert petitioner names/dates/etc, and print petitions for submission to the state's attorneys.
1414

@@ -30,22 +30,22 @@ But equally important are the things it **does not** do:
3030

3131
## Who can use Expunge-VT?
3232

33-
This tool was originally developed exclusively for use by VLA in their clincs in 2018. But as volunteer attorneys use the tool in clincs, they have started using it in their own practices as well.
33+
This tool was originally developed exclusively for use by VLA in their clincs in 2018. But as volunteer attorneys use the tool in clincs, they have started using it in their own practices as well.
3434

3535
- **Anyone with data access...** The extension can only be used by people who already have access to state criminal databases - the extension does not grant any data access itself. But the extension will work for anyone who has access to criminal dockets through [VT Courts Online](https://secure.vermont.gov/vtcdas/user) or [Vermont Judiciary Public Portal](https://publicportal.courts.vt.gov/Portal).
3636

3737
- **... but primarily attorneys.** Although anyone with data access can use this tool to generate petitions, they will need to be reviewed (and possibly corrected or modified) by an attorney familiar with expungement statutues. There are a lot of intracasies in expunging & sealing records and conflicts and inaccuracies in the official records that require expert review.
3838

39-
## Demo Expunge-VT
40-
Although you can't generate real petitions without data access, you can give it a test run on these three sample dockets. Just download [the extension from the Chrome Store](https://chrome.google.com/webstore/detail/expungevt/kkooclhchngcejjphmbafbkkpnaimadn), navigate to one of these three pages, and click the icon to begin parsing the dockets.
39+
## Demo Expunge-VT
4140

42-
1. [Sample 1](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample1.html)
43-
1. [Sample 2](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample2.html)
44-
1. [Sample 3](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample3.html)
41+
Although you can't generate real petitions without data access, you can give it a test run on this sample docket. Just download [the extension from the Chrome Store](https://chrome.google.com/webstore/detail/expungevt/kkooclhchngcejjphmbafbkkpnaimadn), navigate to one of these three pages, and click the icon to begin parsing the dockets.
42+
43+
1. [Sample Docket](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample1.html)
4544

4645
You can also view our working draft of [user documentation here](https://docs.google.com/document/d/1tsb6ATu75B6rkEfKKBy32mENy5KHYtM-_wrg36Plc50/edit?usp=sharing).
4746

4847
## Setup for local development
48+
4949
If you are a programmer and are interested in how the extension works, it's easy to run locally too. For more information on how you can pitch in (because that would be super helpful) visit the `#expunge-vt` channel in [Code for BTV's Slack](http://cfbtv-slackin.herokuapp.com/).
5050

5151
1. Clone the github repo, navigate to the `extensionDirectory` folder and run "npm install".
@@ -63,6 +63,7 @@ If you are a programmer and are interested in how the extension works, it's easy
6363
1. Familiarlize yourself with [how chrome extensions work](./README_EXTENSIONS_OVERVIEW.md).
6464

6565
## Contact Us
66-
This tool was created by Code for BTV, in partnership with [Vermont Legal Aid](https://www.vtlegalaid.org/).
66+
67+
This tool was created by Code for BTV, in partnership with [Vermont Legal Aid](https://www.vtlegalaid.org/).
6768

6869
Please send questions, comments, or feedback to expungevt@codeforbtv.org

extensionDirectory/background.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ chrome.runtime.onInstalled.addListener(function () {
1717
// Code for BTV has demo dockets for practicing
1818
pageUrl: { hostContains: 'codeforbtv.org' },
1919
}),
20-
new chrome.declarativeContent.PageStateMatcher({
21-
// VT Courts Online (VCOL)
22-
pageUrl: { hostContains: 'secure.vermont.gov' },
23-
}),
2420
new chrome.declarativeContent.PageStateMatcher({
2521
// Odyssey site
2622
pageUrl: { hostContains: 'publicportal.courts.vt.gov' },
@@ -33,7 +29,7 @@ chrome.runtime.onInstalled.addListener(function () {
3329
pageUrl: { urlContains: 'chrome-extension://' },
3430
}),
3531
new chrome.declarativeContent.PageStateMatcher({
36-
// Activate extention on new tabs (helpful for navigating to VCOL and Odyssey)
32+
// Activate extention on new tabs (helpful for navigating to Odyssey)
3733
pageUrl: { urlContains: 'chrome://newtab/' },
3834
}),
3935
],

extensionDirectory/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensionDirectory/payload.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,22 @@ docketData = {
1010
rawDocket: null,
1111
};
1212

13-
// select data from the current site
13+
// parse data from the current site
1414
switch (docketData.domain) {
15-
// old Vermont Courts Online site
16-
case 'secure.vermont.gov': {
17-
docketData.rawDocket = document.getElementsByTagName('pre')[0].innerHTML;
18-
break;
19-
}
2015
// new VT Judiciary Public Portal (aka Odyssey, aka Tyler Technologies)
21-
case 'publicportal.courts.vt.gov': {
22-
docketData.rawDocket = document.getElementById('roa-content').innerHTML;
23-
break;
24-
}
16+
case 'publicportal.courts.vt.gov':
17+
2518
// demo site used to test extension (see readme or codeforbtv.github.io/expunge-vt/)
2619
case 'htmlpreview.github.io': {
27-
docketData.rawDocket = document.getElementsByTagName('pre')[0].innerHTML;
20+
docketData.rawDocket = document.getElementById('roa-content').innerHTML;
2821
break;
2922
}
3023
}
3124

3225
// If an expected site was not found, maybe it is being run on a local file?
3326
if (docketData.url.startsWith('file')) {
3427
docketData.domain = 'localhost';
35-
docketData.rawDocket = document.getElementsByTagName('pre')[0].innerHTML;
28+
docketData.rawDocket = document.getElementById('roa-content').innerHTML;
3629
}
3730

3831
// Send message or alert user

extensionDirectory/popup.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@
7575
<b>Vermont Judiciary Public Portal <i class="fas fa-external-link-alt"></i></b>
7676
</p>
7777
</a>
78-
<a
79-
id="vtCourtsOnlineA"
80-
class="title-page__link"
81-
target="_blank"
82-
href="https://secure.vermont.gov/vtcdas/user"
83-
>
84-
<p id="vtCourtsOnline">
85-
<b>VT Courts Online <i class="fas fa-external-link-alt"></i></b>
86-
</p>
87-
</a>
8878
<a target="_blank" href="disclaimer.html" class="title-page__link">
8979
<p style="padding-bottom: 20px;">
9080
Terms &amp; Conditions <i class="fas fa-external-link-alt"></i>

0 commit comments

Comments
 (0)