Git Product home page Git Product logo

Comments (10)

Seedmanc avatar Seedmanc commented on June 20, 2024

Weird, never happens to me. Is your booru any special?

Let's see if other users report the same.

from booru-mass-uploader.

ProximaNova avatar ProximaNova commented on June 20, 2024

It is strange; there doesn't seem to be a pattern:
meme.booru.org - 2 refreshes (2nd test: 0)
redpill.booru.org - 1 refresh (2nd test: 3)
something else - 0 refreshed (2nd test: 0)

from booru-mass-uploader.

Seedmanc avatar Seedmanc commented on June 20, 2024

Made some changes to the .user.js, dunno if they addressed the issue, but you're welcome to update and test it.

Did it happen on both FF and Chrome or you only have one installed?

from booru-mass-uploader.

ProximaNova avatar ProximaNova commented on June 20, 2024

I am using Firefox. Also there is now this unintelligible text that says "You are to a site." above the upload button. And I think this glitch might have to do with previously mass uploading; I'll restart my computer and test again.

from booru-mass-uploader.

Seedmanc avatar Seedmanc commented on June 20, 2024

Weird, that means the scripts in the injected page don't fire. I'm using mostly Opera and Chrome and it doesn't happen to me. There's a slight delay between page injection and scripts working, but they never fail to.

I tried it in FF now and the first time it indeed happened like you said, but after a refresh all went to normal and I couldn't reproduce it anymore. I don't even know if you can debug userscripts in FF, I wasn't able to last I tried.

from booru-mass-uploader.

ProximaNova avatar ProximaNova commented on June 20, 2024

Since it doesn't recognize the login status instantly in FF this part in index.html displays "You are to a site." instead of "You are [login status] to a [booru type] site."

<p style="text-align:center;margin-top:-1em;margin-bottom:-0.33em;">
You are <span class="bold" id="loggedIn"></span> to a <span class="bold" id="current"></span> site.
</p>

For the above code snippet: is the bold class acted upon by anything other than the CSS ("font-weight:bold;")? I changed it to:

You are <b id="loggedIn"></b> to a <b id="current"></b> site.

from booru-mass-uploader.

Seedmanc avatar Seedmanc commented on June 20, 2024

Nah, it's just seeing <b> with stuff like ids is really weird for me. At my work they do everything with classes, even simply bolding text.

I wish there was stuff like CSS optimizer that would analyze both CSS and HTML structure to simplify them, but I only know separate approaches.

from booru-mass-uploader.

Seedmanc avatar Seedmanc commented on June 20, 2024

Uploader now shows a spinner during scripts' loading and disables the upload button until they're active.

from booru-mass-uploader.

Seedmanc avatar Seedmanc commented on June 20, 2024

Perhaps this issue is related to #10 where entire page fails to load.

There's a trick with loading scripts in imported page, when you simply insert the page acquired from some source, its inbuilt scripts don't fire normally. Therefore I loop through page's text reinserting them, which causes them to launch (https://github.com/Seedmanc/Booru-mass-uploader/blob/gh-pages/booru.mass.uploader.user.js#L38) Maybe debugging that part of code would help, but >FF >debugging userscripts

from booru-mass-uploader.

Seedmanc avatar Seedmanc commented on June 20, 2024

The issue was due to the indeterminate order of scripts loading. The recent update should fix it for good https://github.com/Seedmanc/Booru-mass-uploader/raw/gh-pages/booru.mass.uploader.user.js

from booru-mass-uploader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.