Skip to content

Standalone .js version in use in userscripts (like in arrive.js) #3

@darkred

Description

@darkred

(continuing from your comment here: uzairfarooq/arrive#32 (comment))
Firstly, thank you for your work rewriting arrive and making it work in iframes!


I'd like to use monitoring in a userscript (with Tampermonkey/Violentmonkey)

I know that .mjs is an extension for EcmaScript modules, so
// @require https://github.com/kylekyle/monitoring/raw/master/dist/monitoring-latest.min.mjs
doesn't work.

I already tried browserify + esmify browserify index.js -p esmify > bundle.js inside the src folder
and I got this file bundle.js
but it still doesn't work if I manually add it in the Editor|Externals of my userscript.

 

Could you please help in making a standalone .js version (like in arrive.js) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions