rM-self-serve / webinterface-upload-button

Upload button for the web interface, alternative to drag and drop. For the ReMarkable Tablet.
MIT License
9 stars 1 forks source link

hbtn_elm is null #5

Closed fkranhold closed 1 day ago

fkranhold commented 2 months ago

With Version 3.11.2.4, the script does not work any more; the js debugger of Firefox says the following:

Uncaught (in promise) TypeError: hbtn_elm is null
    init http://10.11.99.1/webinterface-upload-button.js:36
    async* http://10.11.99.1/webinterface-upload-button.js:155
rM-self-serve commented 2 months ago

Thanks for the report. I do not have access to that version yet but will take a look when I do. It seems they have been giving the web interface more attention lately.

Scoder12 commented 1 month ago

I managed to get it to work again. The page uses javascript now, so a mutation observer is needed to wait for it to render. Also, the download button doesn't show up until you click on a file, so we can't clone it anymore. Instead, I build the icon manually, which is a bit more jank. Here's the userscript I'm using: https://gist.github.com/Scoder12/3bb05946642fa788d3538598f99448a5

rM-self-serve commented 1 month ago

Thanks for the heads up! I hope everyone has sent messages to the company asking for an upload button. Its pretty ridiculous they are redesigning the web page but still haven't added that.

The newest version also has a new update mechanism so I'm waiting for the tooling around that to catch up.

I might ask you turn this into a pull request when I'm ready!

Scoder12 commented 1 month ago

Ok, just let me know.

This script has been essential for me because I don't use the cloud services.

rM-self-serve commented 4 days ago

@Scoder12 Could you make a pull request? Looks solid and works all the way down to v2.10. Only has to be for the js file, I will do the rest.

Not sure if you saw but they added an import button in v3.12!

Scoder12 commented 2 days ago

Great to hear they finally added the button!