Help with OpenUserJS

Hey there,
I keep on receiving the following error after importing a GitHub script file to the OpenUserJS.

The specified file does not contain the proper metadata blocks.

Error Visualization

The UserScriptJS Block:

// ==UserScript==
// @name         project name
// @namespace    url
// @description  desc
// @copyright    line
// @license      MIT
// @icon         url, it is
// @version      1.0.0
// @author       uhhuh
// @run-at       document-start
// @grant        none
// @include      [url]
// @updateURL    https://openuserjs.org/meta/username/file.meta.js
// @downloadURL  https://openuserjs.org/src/scripts/username/file.user.js
// ==/UserScript==
// Most of the fields of block has been hidden due to confidential reasons.

Thanks for helping me out!

Hey @chroventer this isn’t exactly a Coding Question, but that’s probably the closest we have to a “watercooler”, so I moved it there.

Also for whatever it’s worth, I can’t see that LightShot page - I get a 400.

Hey @chroventer,
Try copy/pasting code to the import window instead of importing it from GitHub; maybe OpenUser site can’t properly read the file from repository. Hope that helps!

1 Like

It would’ve been really great if I can just directly import from GitHub.
Thanks for the answer anyway!

yeah github import has never worked for me for that site, copy-paste is what i always do. but the updating from github works fine

1 Like

Thanks for the reply, torcado!
But that can cause a little inconvenience to the user. Anyway, thanks for the advise!