[Unsupported] App Store script

Can you post what it says on your JavaScript console in the browser?

Oops, I blocked with my firewall by mistake. It’s working now :sweat_smile:

1 Like

Can you make ‘Hook into App Store’ as a @require or something, so that you can easily improve the hook code?

I could but there would be now getting around the need for a line of code in the script. Having an external dependency can only make things slower. The dependency scripts are also pegged to particular code, so there would be no live update benefit.

I’m having difficulty accessing the script using Chrome on a Mac. :frowning_face:

It just takes me to this page when I click on the App Store from the Dashboard.

1 Like

I’ve seen this myself, @Docchan. Try refreshing the dashboard page and following the link again.

I thought I was being all clever when I repurposed a non-existant page for the app store script. I think it will be more robust if I switch to reusing the dashboard page or something.

I tried refreshing the Dashboard page and following the link again several times, as well as uninstalling and reinstalling the script, but neither seemed to work. :disappointed:

I saw the appstore now once, going to search moved to a 404 page, and now everything is 404 again. Also running Chrome/OSX.

I’ll see about not basing the App Store on a 404 page.

Strange that I haven’t had complaints about the 404 screen on my forums lesson/review count script. Either people don’t use that particular script much, or we’re implementing the 404 different. Have you narrowed down when it happens? Particular browser, etc? I haven’t been keeping up.

Just checked, it loads in developer tools in Chrome, first some scripts fail with:

ERROR: Execution of script ‘WaniKani Pitch Info’ failed! $ is not defined

And there are a few of these:

[Violation] Avoid using document.write().
[Violation] Parser was blocked due to document.write()
VM97105:formatted:38 A parser-blocking, cross site (i.e. different eTLD+1) script, https://code.jquery.com/jquery-3.2.1.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See Chrome Platform Status for more details.

instead of jquery there is also https://unpkg.com/js-search@1.3.7/dist/umd/js-search.min.js

… and then it continues as normal, including a complete dump of the HTML content to the console.

Hmm, so it looks like it might be the document.write().
I’m using:

elem.innerHTML = "";

to replace the 404 contents with an empty string, then

var script_elem = document.createElement('script');

to create a script tag with

script_elem.src="<jquery_url>";

and

script_elem.onload = some_function;

to continue after it loads.

1 Like

By going trough the script of WaniKani Real Numbers I came across this thread. Installed the App Store in Firefox w/ GreaseMonkey but I get the following:

Script error:
ReferenceError
columnNumber: 9
fileName: “resource://gre/modules/ExtensionContent.jsm”
lineNumber: 407
message: “$ is not defined”

Greasemonkey has been broken for a while. Get Tampermonker instead.

Thanks, that fixed it indeed.

@hitechbunny Can you please remove the App Store menu option when the App Store script is not installed? I turned it off because I don’t use it and having your other scripts add the menu option is distracting.

3 Likes

I completely agree with seanblue. I’ve got no interest in using that App Store script and don’t like seeing it in the menu.

1 Like

It still goes to 404 for me without the developer tools open. Have you considered to just replace the contents of the current page instead of a navigation? At least all scripts and styles are loaded already then.

1 Like

https://www.wanikani.com/script/appStore ← Returns 404 page.

same i am also being returned to post

1 Like