As I understand, bookmarklets are executed with the origin of the page, where they are invoked. While this is pretty much the very reason they are useful, it limits the ability of the bookmarklet to keep state.
Specifically, I want to store configuration data for a bookmarklet. A use-case would be e.g. allowing persistent site-independent customization of the behaviour, without changing the code.
Additional criteria would include
An extreme example would be a bookmarklet syncing content with a third-party file hosting service like Dropbox, which would require securely storing an authentication key.
Is there any such possibility?
Configuration might be put in the bookmarklet manually, e.g. by hosting the main javascript on a public service like github, and creating a proxy bookmarklet that loads it with #
-options, e.g.
javascript:function runBmlet(url){ var s=document.createElement("script"); s.src=url; document.head.appendChild(s); }; runBmlet("http://url.of/my/script.js#DropboxData=YOURDATAHERE");
which is however much less convenient on the long run than storing the configuration in something akin to localStorage.
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I need advice for the following problem: I have a video stored on the local device, let's say in /home/user/videomp4 And I want to play this video with a html5 video tag on a website I get from a webserver
To not deal with webpack and only focus purely on understanding React itself, I've started off by having all of my JS code inside an inlined script tag in the indexhtml file
Let's consider a horizontal bar chart as shown in the attached photoI need to show the duration of each segment along with the x-axis
I am writing a webapp with VueJs, I am trying to setup unit test for it, I got inspired from vue-mdl unit-testsBut the tests are not running properly for my code and I am getting vm