Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unintended/download-organizer-chrome-extension
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: flaritycat/DOCE_RPA
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
Loading
Showing with 699 additions and 22 deletions.
  1. +33 −9 README.md
  2. +2 −2 _locales/en/messages.json
  3. +2 −3 manifest.json
  4. +659 −0 options.html
  5. +2 −8 options.js
  6. +1 −0 testingXML.xml
42 changes: 33 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
download-organizer-chrome-extension
DOCE_RPA build 0.0.1
===================================
This is a fork of download-organizer-chrome-extension found at https://github.com/unintended/download-organizer-chrome-extension

Chrome extesion that allows you to set custom download locations with a flexible regexp-based rules.
The new intended usage is between users and RPA-bot.
- Configuring option.js for setting the ruleset on-top of Visma In School.
- Configuring options.html to a different view. (Badly)

Try at [Chrome web store](https://chrome.google.com/webstore/detail/regexp-download-organizer/oamembonjndgangicfphlckkdmagpjlg)
Current settings [Options.js](options.js)
===================================
- All files from *inschool.visma.no* with the name of **letter.pdf** and **document.pdf** are downloaded to folder *"Downloads\Vis-ePhorte"*
Enabled: True ✔️

Internal requirements
===================================
- PC
- Windows 10 connected to domain.
- Chrome with a connected domain.
- Network share
- RPA

## Debugging
Internal scenario
===================================
*(prior to fork is marked with strikethrough)*

- Extension is set to install via [Google Admin](http://admin.google.com/) on connected accounts.
- Edit: You'll need to upload the extension as private for your organization. https://chrome.google.com/webstore/devconsole/register
- User logs into chrome with account, and synchronize.
- Extension is installed.
- ~~The user runs an .exe Autoitscript to change the options via console in Chrome.~~ https://github.com/flaritycat/Chromeudfs_console
- User downloads file. File is stored under *"Downloads\Vis-ePhorte"*
- *"Downloads\Vis-ePhorte"* is a symlink to a network share. **Must be setup before downloading, or else the folder will be created by the extension**
- *RPA-bot* has access to the network share. Moves the files to a different internal location and starts to work.

Before opening an issue, please do the following and try to figure out what fields are most suiatble for your rule. To debug the addon:
1. Open chrome://extensions/
1. Open inspect view and check console ![image](https://user-images.githubusercontent.com/641973/97117295-beedb900-1713-11eb-8e79-541f2d89659b.png)
1. Download something and you will get your log ![image](https://user-images.githubusercontent.com/641973/97117265-95349200-1713-11eb-8eea-6fd394632e92.png)
Symbolic Link example
===================================
mklink /d "%userprofile%\Downloads\vis-ephorte" "\\my.domain.com\internal\%username%\Vis-Ephorte"

The most interesting part is "Downloading item": you have to check the fields and try to figure out a working rule. Unfortunately, there is no universal rule for all sites, because different sites have different link and content delivery structure. If still unsure, open the issue and attach your item dump from the console log.
The above line should be forced on logon.
4 changes: 2 additions & 2 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"appName": {
"message": "RegExp Download Organizer"
"message": "DOCE_RPA"
},
"appDesc": {
"message": "Forget about the mess in your Downloads folder!"
"message": "Download files from Visma In School to specified folder. Supporting letter.pdf and document.pdf"
}
}
5 changes: 2 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"manifest_version": 2,
"name": "__MSG_appName__",
"short_name": "REDownloadOrganizer",
"short_name": "DOCE",
"description": "__MSG_appDesc__",
"default_locale": "en",
"version": "0.3.2",
"version": "0.0.1",
"options_page": "options.html",
"homepage_url": "https://chrome.google.com/webstore/detail/regexp-download-organizer/oamembonjndgangicfphlckkdmagpjlg",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
Loading