Skip to content
This repository was archived by the owner on Jul 27, 2024. It is now read-only.

Maxthon 5.2: cannot show created script in list! #97

Open
antony84 opened this issue May 21, 2018 · 13 comments
Open

Maxthon 5.2: cannot show created script in list! #97

antony84 opened this issue May 21, 2018 · 13 comments

Comments

@antony84
Copy link

I installed Maxthon 5.2.2.2000 and violentmonkey 2.8.4. I'm on windows 7.

I created a "New" script, but after saved and closed it, i cannot see it in the list. But the script is executed anyway.
Tried to create an other new script, but the same happens: script not shown!
In "Installed scripts" section, i can olny read "Loading..." and no more.

@antony84
Copy link
Author

antony84 commented May 23, 2018

Has the project dead?

@02030pllolipop
Copy link

@antony84 nope, as the author is busy, i guess...

You need to fill up the name space and info first.

Try to reinstall the plugin/browser if that fails.

@gera2ld
Copy link
Member

gera2ld commented May 25, 2018

Cannot reproduce.

Can you provide error log in options page? (Press F12, switch to Console tab, see if there are red messages)
Can you provide the content of your script?

@antony84
Copy link
Author

antony84 commented May 26, 2018

Hi, tnx for the answer. When i open the plugin, i got these errors in console:

browser.js:1 Uncaught (in promise) TypeError: Cannot add property 1, object is not extensible
at Array.push ()
at t.e (browser.js:1)
at s (app.js:1)
at Array.forEach ()
at app.js:1
at a (browser.js:1)
at browser.js:1
at r.callFunc (browser.js:1)
at browser.js:1
at Array.forEach ()
(anonymous) @ browser.js:1
r.callFunc @ browser.js:1
r @ browser.js:1
a @ browser.js:1
(anonymous) @ browser.js:1
r.callFunc @ browser.js:1
(anonymous) @ browser.js:1
s @ browser.js:1
t @ browser.js:1
a @ browser.js:1
(anonymous) @ browser.js:1
r.callFunc @ browser.js:1
(anonymous) @ browser.js:1
s @ browser.js:1
t @ browser.js:1
a @ browser.js:1
(anonymous) @ browser.js:1
r.callFunc @ browser.js:1
(anonymous) @ browser.js:1
s @ browser.js:1
t @ browser.js:1
(anonymous) @ browser.js:1
common.js:1 TypeError: Cannot read property 'lowerName' of undefined
at i (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/options/app.js:1:2763)
at mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/options/app.js:1:2813
at Array.sort (native)
at r.onUpdate (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/options/app.js:1:2788)
at r.n [as onUpdate] (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/common.js:1:182230)
at r.store.scripts (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/options/app.js:1:2136)
at yo.run (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/common.js:5:6603)
at qe (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/common.js:1:194002)
at Array. (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/common.js:1:188088)
at MessagePort.re (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/common.js:1:187917)
ie @ common.js:1
oe @ common.js:1
ae @ common.js:1
yo.run @ common.js:5
qe @ common.js:1
(anonymous) @ common.js:1
re @ common.js:1
app.js:1 Uncaught TypeError: Cannot read property 'lowerName' of undefined
at i (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/options/app.js:1:2763)
at mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/options/app.js:1:2813
at Array.sort (native)
at r.onUpdate (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/options/app.js:1:2788)
at r.n [as onUpdate] (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/common.js:1:182230)
at r (mxaddon-pkg://{7732dc50-47c1-9be5-6ea9-f85c38172974}/browser.js:1:2029)
i @ app.js:1
(anonymous) @ app.js:1
onUpdate @ app.js:1
n @ common.js:1
r @ browser.js:1
setTimeout (async)
(anonymous) @ browser.js:1
updateLater @ app.js:1
n @ common.js:1
t @ common.js:1
e.$emit @ common.js:5
value @ common.js:5
yo.run @ common.js:5
qe @ common.js:1
(anonymous) @ common.js:1
re @ common.js:1

@antony84
Copy link
Author

antony84 commented May 26, 2018

I tried to reinstall maxthon and violentmonkey.

I tried to create this simple script:

// ==UserScript==
// @name TEST
// @namespace TEST
// @match *://*/*
// @grant none
// ==/UserScript==

alert(1);

but when i saved i got this error:

browser.js:1 Uncaught TypeError: Cannot add property 1, object is not extensible
at Array.push ()
at t.e (browser.js:1)
at s (app.js:1)
at AddScript (app.js:1)
at common.js:5
at browser.js:1
at Array.forEach ()
at o (browser.js:1)

@gera2ld
Copy link
Member

gera2ld commented May 27, 2018

Still cannot reproduce... I think I know what the error is, but it's unlikely caused by Violentmonkey.

Can you provide the error messages after reloading the options page? Those above should be generated just after you saved the new script.
Did you add any special settings or plugins to Maxthon?
Did you try a newly installed Maxthon and Violentmonkey? I tried and everything worked well for me.
It's better if you can provide the link to the Maxthon release you are using.

Thanks for your patience.

@gera2ld gera2ld added need info and removed invalid labels May 27, 2018
@Martii
Copy link

Martii commented Jun 6, 2018

Don't you love when they don't come back? ;) :)

Anyhow I'm here with probably the same issue... I just tried this in my Windows 7 Pro (full system updates and current) with a new, never seen Maxthon, install of Maxthon 5.2.3.1000 and installing oujs - Meta View with Violentmonkey v2.7.1... does run as expected but script list is quite empty.

Can you provide the error messages after reloading the options page?

F12 console contents, after saving, on Violentmonkey tab is:

vendor.js:6 TypeError: Cannot add property 1, object is not extensible
    at Array.push (<anonymous>)
    at l (browser.js:1)
    at a.getLocaleString (app.js:1)
    at a.n [as getLocaleString] (vendor.js:6)
    at a.render (app.js:1)
    at a.t._render (vendor.js:6)
    at a.r (vendor.js:6)
    at Xr.get (vendor.js:6)
    at new Xr (vendor.js:6)
    at gt (vendor.js:6)
O @ vendor.js:6
vendor.js:6 TypeError: Cannot add property 1, object is not extensible
    at Array.push (<anonymous>)
    at l (browser.js:1)
    at a.getLocaleString (app.js:1)
    at a.n [as getLocaleString] (vendor.js:6)
    at a.render (app.js:1)
    at a.t._render (vendor.js:6)
    at a.r (vendor.js:6)
    at Xr.get (vendor.js:6)
    at Xr.run (vendor.js:6)
    at xt (vendor.js:6)
O @ vendor.js:6

Did you add any special settings or plugins to Maxthon?

Nope... first time install on this machine.

Did you try a newly installed Maxthon and Violentmonkey?

Yes... first time install for both.

It's better if you can provide the link to the Maxthon release you are using.

Download link is http://dl.maxthon.com/mx5/mx5.2.3.1000.exe

Screenshots:

  • Script installed and working
  • maxthon violentmonkey script list

@Martii
Copy link

Martii commented Jun 6, 2018

Same in Windows 10 Pro virtual machine.

@Martii
Copy link

Martii commented Jun 6, 2018

macOS (OS X) 10.13.5... doesn't appear to load extensions from drag and drop, or double click, or any menu item in Maxthon 5.1.130 (180507) for the .mxaddon file referenced above. Guess this probably may rule out trying on iPhone.


By the way at http://www.maxthon.com/mac/ext there's a notification box that says:

Extensions on this site can only be used by the users of Maxthon Classic Version (V4.1.3.5000),
please down the browser of this version.

Those extensions end in .crx and not .mxaddon . Just for grins I thought I'd see if the Chrome store Violentmonkey was addable to macOS Maxthon... no luck.

@Martii
Copy link

Martii commented Jun 6, 2018

Will try the url at http://extension.maxthon.com/detail/index.php?view_id=1680 in macOS.

WIndows 7 now shows in the newer version there of Violentmonkey v2.8.4 "Oops, you haven't got any script yet" and console shows:

browser.js:1 Uncaught Error: Does not exist this id.  (636)
    at h (browser.js:1)
    at d.onBrowserEvent (browser.js:1)
browser.js:1 Uncaught TypeError: Cannot add property 1, object is not extensible
    at Array.push (<anonymous>)
    at t.e (browser.js:1)
    at s (app.js:1)
    at AddScript (app.js:1)
    at common.js:5
    at browser.js:1
    at Array.forEach (<anonymous>)
    at o (browser.js:1)
browser.js:1 Uncaught Error: Does not exist this id.  (636)
    at h (browser.js:1)
    at d.onBrowserEvent (browser.js:1)

Same as before... script is running.

@Martii
Copy link

Martii commented Jun 6, 2018

LOL... site malfunction I think for http://extension.maxthon.com/detail/index.php?view_id=1680 and macOS:

macOS screenshots:

  • macOS install
  • Maxthon version page

Guess I won't be testing that anytime soon. :) Apologies for the noise but giving you some feedback for what I can when I can. Thanks dude.

@fapkamaster
Copy link

fapkamaster commented Oct 29, 2018

Problem still persist. I got information it doesn't save the state of settings in my UserScript.
The fault is probably in ViolentMonkey.
Script does not launch at all and console points in place that's not part of my script (is part of ViolentMonkey "outer shell" that launches userscripts.

browser.js:1 Uncaught (in promise) TypeError: Cannot add property 1, object is not extensible
at Array.push ()
at t.e (browser.js:1)
at s (app.js:1)
at Array.forEach ()
at app.js:1
at a (browser.js:1)
at browser.js:1
at r.callFunc (browser.js:1)
at browser.js:1
at Array.forEach ()
(anonymous) @ browser.js:1
20:17:42.699 common.js:1 TypeError: Cannot read property 'name' of undefined
at render (app.js:1)
at r.e._render (common.js:5)
at r.a (common.js:1)
at yo.get (common.js:5)
at new yo (common.js:5)
at Me (common.js:1)
at r.At.$mount (common.js:5)
at init (common.js:5)
at d (common.js:5)
at $ (common.js:5)
ie @ common.js:1
20:17:42.711 common.js:1 TypeError: Cannot read property 'name' of undefined
at render (app.js:1)
at r.e._render (common.js:5)
at r.a (common.js:1)
at yo.get (common.js:5)
at yo.run (common.js:5)
at qe (common.js:1)
at Array. (common.js:1)
at MessagePort.re (common.js:1)

@02030pllolipop
Copy link

@gera2ld ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants