Project

General

Profile

Feature #74

Facilitate translation of fixes from Hydrilla format to Hachette format

Added by koszko 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Assignee:
-
Start date:
08/14/2021
Due date:
% Done:

100%

Estimated time:

Description

Right now it is possible to install scripts from Hydrilla in Hachette and then export them as JSON. We could use a standalone tool that would do that. Better yet, we could enable Hydrilla itself to serve such format.

This has been mentioned in https://hachettebugs.koszko.org/issues/59#note-6


Files

gorilla.py.diff (937 Bytes) gorilla.py.diff koszko, 08/18/2021 12:03 PM
generate_hydrilla.sh (1.5 KB) generate_hydrilla.sh koszko, 08/18/2021 12:03 PM

History

#1

Updated by jahoti 5 months ago

  • Description updated (diff)

I'll commit a standalone tool to the Hachette repository soon.

#2

Updated by jahoti 5 months ago

This now (kind of) exists in my branch of browser-extension; the command test/gorilla.py [path to a Hydrilla "content" directory] [url pattern] (url pattern ...) will print a JSON file which can be imported to Hachette, with the fixes for all the URL patterns included (if they exist!).

Why is it in test? In order to test repository support in Hachette, a Hydrilla-compatible "website" is obviously going to be needed, and at least for the very near future is seems easier just to create a very basic implementation in Python than to try and get the proxy server to work with the actual thing.

#3

Updated by koszko 5 months ago

Thanks for the tool. I made enhancements for gorilla to suit my needs (diff attached). I also made fixes available at https://hachette-hydrilla.org/. The list gets updated automatically with the attached sh script... I trust you won't exploit this for XSS or to break into my system ;)

This is a throwaway script, available under CC0

#4

Updated by jahoti 5 months ago

Thanks for the tool. I made enhancements for gorilla to suit my needs (diff attached).

Thanks for those! I'll incorporate them into my branch with the next commit, as they will be a massive help.

I also made fixes available at https://hachette-hydrilla.org/. The list gets updated automatically with the attached sh script... I trust you won't exploit this for XSS or to break into my system ;)
This is a throwaway script, available under CC0

Your trust is well placed, not to mention that I still haven't worked out how to conduct XSS (perhaps I'll learn someday).

The script works very nicely too, and produces lovely output- thank you for sharing it! (Just one minor note: there's a typo in "imp[o]rtable") Even if it is a throwaway, I actually think it would work well as the basis for future versions of similar pages unless we decide to integrate that entirely into Hydrilla.

Also, I forgot to thank you earlier for the Google Drive folders fix! It's honestly been something I've needed for a long time yet never committed to doing, and it was almost embarrassingly exciting to see you'd accomplished it :).

#5

Updated by koszko 5 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

What we came up with then is probably sufficient for now. Closing

jahoti wrote:

Also, I forgot to thank you earlier for the Google Drive folders fix! It's honestly been something I've needed for a long time yet never committed to doing, and it was almost embarrassingly exciting to see you'd accomplished it :).

YW :)
Honestly, I've needed this for a long time, too. In the past I tried but had too little time and didn't actually find out how to do this. Now it seemed like a reasonable thing to try

Also available in: Atom PDF