Python-script for extracting ViolentMonkey userscripts from *.LDB file
▲ 13 r/ViolentMonkey+2 crossposts

Python-script for extracting ViolentMonkey userscripts from *.LDB file

Recently ViolentMonkey got disabled in Brave browser, making impossible to run neither extract userscripts you made while having the extension.

I wrote a windowed Python script for extracting the scripts from *.ldb database into separated *.js files. (After installing, don't launch *.js files directly in the Windows – you should open them as text files and copy-paste contents of each into a new script of... OrangeMonkey or something.)

How to use it:

  1. Install Python, if you don't have https://www.python.org/;

Installing dependencies
-------------------------
    pip install tkinterdnd2      # for drag-and-drop in the window (optional)
    pip install python-snappy    # for decompressing compressed blocks (optional)
        # or
    pip install cramjam          # alternative to python-snappy (optional)
  1. Download the script: https://pastebin.com/GtmEaGuQ . Name the file, like, vm_extractor_eng.pyw.

  2. Launch by double-clicking (in Windows). Probably works on Linux and Mac as well.

  3. Load the file (by drag-and-dropping or with Open File button). The location is: C:\Users\Username\AppData\Local\BraveSoftware\Brave-Browser\User-Data\Default\Local Extension Settings\jinjaccalgkegednnccohejagnlnfdag\000005.ldb, or similar. (jinjaccalgkegednnccohejagnlnfdag was the id for latest ViolentMonkey https://chromewebstore.google.com/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag?pli=1.)

  4. It's recommended to enable the "Show only the latest version of each script". As you can see, old versions of scripts also stored in the database; even those that you completely deleted, still will appear – if you disabled the checkbox.

  5. Click Save All and choose a folder.

  6. Using your new scripts engine (like OrangeMonkey), create new userscript for every file and copy-paste the content. Notice that for make OrangeMonkey work, you should enable "Allow User Scripts" here: extensions button → Manage extensions → Orange Monkey's "Details" → enable Allow User Scripts; then you have to relaunch browser, that is close all browser's windows then open the browser again.

u/nothingxmc — 1 day ago

Bug when creating many files – endlessly writing to HDD

Not about uTorrent (utorrent.com), but about BitTorrent (bittorrent.com).

Have someone encountered such bug? When starting a huge torrent to download (like, whole season of TV series), BitTorrent app starts to endlessly write something to HDD, like, with 10...30 Mbytes/sec. Strangely, this happens not every time; sometimes it just creates “empty files” (not writing anything to them), and sometimes it encounters this bug I'm talking about, writing a shitstream, not allowing to end the process via Task Manager (only Windows restarting helps).

I understand that “writing while downloading” is okay, as well as “writing bunch of data is okay while downloading bunch of data”. But: why it happends not always? I mean, as far as I know, apps don't have to “zero-write” files right after creation, at least it's not happening each time you download somthing via BitTorrent. But when you try to download a whole season (e.g., 30–70 GB), the hard drive starts to create rattling earthquake for many minutes. (Even if it's zero-writing, why there's need to write all the files simultaneously? Obviously it's safer for HDD to write them one after one.)

reddit.com
u/nothingxmc — 1 month ago