Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
Gerald edited this page May 23, 2013 · 8 revisions

Frequently Asking Questions

Where is the data stored?

Since extensions of Opera do not have the permission to read or write in local drives, all the scripts are stored in the extension storage. Scripts can be exported to a zip file since version 1.2.

What about the local UserJS?

Violentmonkey does nothing with the local UserJS. They can work just as before. But make sure they are not both in UserJS folders and Violentmonkey, because that will make the script running twice.

Do I need to install the required scripts (e.g. jQuery) to Violentmonkey along with the main one?

No. Even if they are installed, they make no difference. Violentmonkey will build a separated environment for each script, as a result, variables from different scripts will not be fetched by each other. All you need to do is to make sure the required scripts are required with @require rules in meta data. Violentmonkey will do the left.

Why don't scripts work in Violentmonkey but work well in the UserJS folder?

Opera deal with UserJS files differently according to the file name. JS files ending with .user.js will be executed after the page is loaded, while those ending with .js will be executed as soon as the page starts to be loaded. However, Violentmonkey regards all scripts as .user.js files. So if a .js script is installed into Violentmonkey, it will be executed after the DOM of the page is loaded (DOMContentLoaded) and fail. There are several solutions (The first is the most recommended):

  • Remove them from Violentmonkey, save to files named blablabla.js in UserJS folder.
  • Install to Violentmonkey, set @run-at to document-start.