GithubHelp home page GithubHelp logo

unintended / download-organizer-chrome-extension Goto Github PK

View Code? Open in Web Editor NEW
67.0 7.0 8.0 268 KB

Chrome extesion that allows you to set custom download locations with a flexible regexp-based rules.

License: MIT License

JavaScript 85.98% HTML 14.02%

download-organizer-chrome-extension's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

download-organizer-chrome-extension's Issues

Boolean

Could you please add the option to use boolean logic? Or maybe release another extension that uses boolean instead? ANDs are quite cumbersome in regex. I want to have non-mp4 videos go to a "to be converted" folder using "videos/* & !videos/mp4".
also
On macs (don't know about windows), aliases can be used instead of symbolic links, so you might want to recommend those in the "help" section.

[REQ] Add usage documentation to Wiki

Really love this extension. I and I'm sure a lot of other people could benefit from proper documentation with examples/tutorials if possible. I know this is a lot to ask, but maybe a few people can contribute. I've gone through a lot of trial and error to get what I want and still some seemingly obvious entries don't work. Having said that, I'm no regex guru. Anyway, just thought I would put this out there. Thanks again for creating this.

GMail attachment download not working

Please help. This is driving me crazy.
I have multiple gmail accounts, and want to get documents from each account downloaded separate in its own folder.
This is my referrer URL: .*\mail\.google\.com\/mail\/u\/(.).*
This is my download folder: gmail/ACCOUNT${referrer:1}/
I've tried multiple combinations to see if something is wrong, can't make it work.

Can someone correct it? Thank you!
EDIT: Didn't realize that it was not displaying code correctly. Now it's as I entered

Not possible to override file extension

Adding a rule with destination path ${filename}.foobar does not seem to work. This seems to be a limitation in the Chrome API, where calling suggest with a filename of a known mime type will always override the file extension.

It would be good to add this limitation to the right hand side help/tips documenaton.

I was able to work around it by using another extension to modify the response headers for the same url as I'm downloading, changing the Content-Type header to application/x-foobar. Then it is possible to change the file extension.

Perhaps this extension could add a hook for onHeadersReceived for the downloaded URL, and change the response content type to application/x-download-organizer to ensure extensions can always be changed?

site/${referer:1}/ doesn't appear to work

Just installed this. Looks nice. The default rule site/${referer:1}/ does not appear to work. The file just gets dumped in my Downloads directory like normal. The rule is enabled and at the top. I disabled all other rules. Still doesn't work.

The other rules like for archives do seem to work fine.

I also tried to make my own rule for a specific site like this:

Referrer URL: .cdn.mywebsite.com.
Destination Path: mywebsite-downloads/

That also did not work. File just goes to the Downloads directory. What am I missing here?

Extension no longer working [Part II]

It seems the latest Chrome update has rendered the referrer aspect of the rules obsolete as the addin can now no longer get the whole Referrer URL meaning my rule(s) don't work.
There was a setting in Chrome to relax this rule, but it seems this is now deprecated and there is no way to bring this behaviour back.... is there anything else I can do to get the extension to work, it's so useful!

Destination path (within default download folder)

Hello. Im sorry if it is too simple quastion but I could not figure it out by myself. It checks where's default folder in Chrome and each download adding to that folder - but if I do not use this script it can remember last saved folder how can I achive that?

For exaple if I have downloaded once in directory C:/Downloads/1 the next files will be dowloading into that directory but in my case it always goes to C:/Dowloads

File Path By Web URL

Hi,

I love this extension but never can make it right. Every extension working right but I want to set my path from dafont.com to my dafont folder. The problem is, dafont fonts contains with these links;

https://dl.dafont.com/dl/?f=fontname.

I tried with dafont and dl.dafont.com but never works. I'm not really good with these things. Could you explain what I have to input with MIME, File URL, Referrer URL, Filena, Destination Path sections?

Thanks a lot!

How to indicate symbolic links ?

Hi,

As specified in Help section of the Download rules, the root folder (forced by Chrome) is Download.
I wish to change it.
You specified You can use symbolic links to circumvent this limitation, my understanding of a Symbolic link is that it represents the Windows Shortcut.
So I created a shortcut, placed it in the Download folder.

But the issue is that the extension create a new folder named exactly like the shortcut(https://i.imgur.com/EDviCtr.png). It's not really what I want :) So maybe I did something wrong ? Or is it a bug ?

Here is what my rule looks like : https://i.imgur.com/qddlN0b.png
Thank you for help.

wetransfer.com

How do I make all files downloaded from wetransfer.com go to their own wetransfer folder?

Could this be turned into a Firefox extension?

Is there any chance of porting this to Firefox, since they now use a similar extension API to Chrome's? There are a few similar extensions for Firefox, but they seem to not work as well (and require saving through a different right-click menu item than the regular 'Save As' option).

Can not use two matchers in destination

When trying to use more than one matcher in destination this extension fails.
Like this: site/{referrer:1}/{mime:1}/
or like this: site/{referrer:1}/{referrer:2}/

I am using Chromium 71.0.3578.98 and version 0.2.4 of the extension.

Html files are converting to txt file

I tried with text/.* and text/html. Still didn't work. It converts html files into text file in download. Your Others rule also didn't work with that.

downloading "download_rules.txt" ignores rules - bug ?

hi there,

when downloading the "download_rules.txt", i would be happy, if the addon would use its own rules, but in my case a complete different rule is used, even my first rule is:

image

but even this is my first rule, a completely different rule is used that has nothing to do with that. i am not sure if that is a bug.

update: i put a "\" before the "." - but still does not match 🤔

Doesn't work with Opera on Windows

I'm not sure this is a supported scenario. I'm using the extension in Opera on Windows 10. Opera is configured to ask me where to store the file. Without the extension, Opera's normal behavior is to use the last directory where I have stored a download as starting point.

My expectation with this extension was that the starting point that I see in Opera's download dialog is the one I have configured in the extension. This doesn't seem to work; it continues to be the last directory I used.

Should this work as I want it to work?

Please add file size comparison match

I want to distinguish .exe files whose size is bellow 10MB to store in TOOLS folder, while higher size .exe files to store in PROGRAMS folder. Maybe, that would be useful for everyone.

Updates Overwriting Rules?

Hi, I've noticed that at least one of my rules seems to occasionally get reset to the default. So far it's happened 2-4 times and I suspect it's related to either automatic updates for the extension or my Chromium updates. I only change the destination path in that rule to capitalise the directory name and add a sub-directory, nothing else. This is a minor nuisance but I thought I should mention it anyway. Perhaps this behaviour is intended and I'm doing something wrong?

No Longer Working

In the last couple of weeks this addin has completely stopped working for me.
All I have 1 rule, based on the referrer URL that places it in a subfolder of the Downloads, based on a number in this referrer url. It was all working fine till about 1 or 2 weeks ago, and now it does nothing, not even a hard coded value works. Perhaps the referrer URL pickup is broken?

HTML files save as images

When I try to save an HTML file (using the "save as" option in google chrome), it directs me to the image directory. Adding any rules doesn't seem to change this. Even if I disable all the rules that recognize images, it will still end up in the images directory.

Is this option supported? If so, how do I save html files in a specific location?

Extension changing file type

So I wanted to use this to organize my backups from a platform that's exports it's files as .pcio. (https://playingcards.io/)
Those files are in fact .zip files renamed but I would really appreciate that they keep the same type for sharing the files as also for compatibility with other backups

Can you make that the save files are stored on your chrome account?

That would be better than exporting them manually. The settings of a lot of extensions, this one included, tend to reset after some browser updates so I export the save file after each change I make. That's sort of annoying. I'd rather have it auto-stored somewhere

PDF saving as TXT

Hi there,

We're finding that with certain PDFs on certain websites the downloaded file gets converted to TXT from PDF.

Rule

{ "enabled": true, "description": "EQ Training", "pattern": "Equinox/", "referrer": "training-equinox\.kilburnstrode\.com" },

PDF downloading as TXT

Downloading item
{bytesReceived: 0, canResume: false, danger: "safe", exists: true, fileSize: 36162, …}
bytesReceived: 0
canResume: false
danger: "safe"
exists: true
fileSize: 36162
filename: "Application filed - receipt.pdf"
finalUrl: "https://training-equinox.kilburnstrode.com/products/equinox/action_request_file.php?matterid=635930&documentid=305664&downloadFirefox=0"
id: 139
incognito: false
mime: "text/plain"
paused: false
referrer: "https://training-equinox.kilburnstrode.com/products/equinox/matters/m_documents.php?id=635930"
startTime: "2021-01-29T09:11:44.767Z"
state: "in_progress"
totalBytes: 36162
url: "https://training-equinox.kilburnstrode.com/products/equinox/matters/m_documents.php?id=635930"
proto: Object

PDF downloading as PDF

Downloading item
{bytesReceived: 0, canResume: false, danger: "safe", exists: true, fileSize: 886896, …}
bytesReceived: 0
canResume: false
danger: "safe"
exists: true
fileSize: 886896
filename: "Formal Drawings.PDF"
finalUrl: "https://training-equinox.kilburnstrode.com/products/equinox/action_request_file.php?matterid=635930&documentid=305724&downloadFirefox=0"
id: 138
incognito: false
mime: "application/octet-stream"
paused: false
referrer: "https://training-equinox.kilburnstrode.com/products/equinox/matters/m_documents.php?id=635930"
startTime: "2021-01-29T09:11:41.583Z"
state: "in_progress"
totalBytes: 886896
url: "https://training-equinox.kilburnstrode.com/products/equinox/matters/m_documents.php?id=635930"
proto: Object

Or if this helps

</training\-equinox\.kilburnstrode\.com(?:\/products\/equinox\/action_request_file\.php\?\*)?/>

Do you have any ideas why this might be happening?

Thanks,

Jeff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.