shazbot

@shazbot@kbin.social

Kbin Enhancement Suite (KES) now working on iOS

Hi kbin users. @shazbot has been working on resolving iOS issues today, and I can tell you that it now works. I'm just a user and know nothing of the scripting these people are doing. I just understand plug and play, along with various settings of apps on my phone. So, for all iOS users you can now enjoy KES settings....

shazbot,

If you're on a narrow mobile device, it was moved into the hamburger menu on the left hand side. Will update the help files to clarify this.

shazbot,

Hi, doing a thread maintenance pass and seeing your message now. (Not sure why I didn't get a notification.) This is actually a very useful piece of data, as from what I gather from your post, KES is actually loading on mobile, but you just can't find the wrench in the navbar? If that's the case, it sounds entirely localized to a cosmetic issue. We were thinking it was not working at all, but this greatly simplifies the scope of the problem. Looks like we just need to find why it is getting occluded and dig it out from the menu.

shazbot,

Just released a hotfix (2.0.5) that should handle this, please have a look. Wrench is now the last item in the hamburger menu. (It may be styled funny for now, but it should at least be in there for the time being.) If you have a screenshot of any graphical anomalies, that'd be helpful, too.

shazbot,

Sorry you had to go through all of that. It's not you, we had a bit of a snafu trying to target the right element to shove the KES icon into and not break anything. I've released another hotfix (2.0.6) that should be working for good. One of our contributors has tested it on iOS mobile and confirmed that KES is working and the icon shows up in the hamburger menu now. You might have to give it a minute to cache before the new version is available. This is a pretty subtle but important fix, I think you've basically solved the mystery for all iOS users now.

The reload message may occasionally appear on the first time the script is reinstalled, but isn't an error per se, just a warning to retry.

shazbot,

Believe me, this report gave me hope, too. We thought it was just broken due to some infrastructural thing, but this didn't align with our understanding or expectations. Knowing KES was active all along but there was no way of accessing the menu is, in a way, kind of relieving.

shazbot,

Alright, that's easy enough, we just need to tell it to respect kbin's internal theming. Very good report!

shazbot,

This has been reported elsewhere, from what I gather, it is due to sandboxing in the OS/app. I don't think we can repackage this as a PWA/web app type thing at this time due to the dependencies and tech debt it would pull in. I don't believe it is to do with cookies, we already use the browser's internal storage. I believe the Userscripts/Hermit/PWA type extensions don't support loading remote resources fully when flattened into a homescreen app due to some security consideration. I haven't investigated it thoroughly yet, but off the cuff, I'd venture to guess it's intractable at this time. It is a minor inconvenience, but I'd suggest just bookmarking in your browser for now. I'm not a mobile ecosystem developer, so I can't speak too much to how, particularly iOS, sandbox applications. I'd venture to guess that when you "bookmark" something to your home screen, it is not really a bookmark, but rather a sandboxed instance of Safari, so it can't see through to the scripts located in the filesystem.

shazbot,

I've made a ticket for it to investigate later, but please understand that it is a low priority relative to other things.

shazbot,

This is added in 2.0.3.

shazbot,

We haven't been approached by the author of the tool for integration, but we could probably port it ourselves after making some infrastructural adjustments. I believe that script has a lot of its own internal functionality (with respect to how settings are stored/saved/etc.), so may have to be rejiggered a bit.

shazbot,

Are you still having this issue? What version of KES? Mobile device or desktop?

shazbot,

You can also invoke ctrl-shift-? to open the menu via the keyboard.

kbin Enhancement Suite: a community-curated script manager that lets you customize your kbin experience

A couple of weeks ago, @shazbot made this post about a project that they were working on. Since then, @shazbot, @ori, @minnieo and I have been hard at work, and we are excited to finally announce the official release of kbin Enhancement Suite (KES)!...

shazbot,

Permanent hide?

shazbot,

Yes, I think there are additional sandboxing/security considerations when using a PWA, which may block pulling in additional script dependencies needed. If I understood you correctly, it works on Safari on a desktop, but when you add it as a mobile home screen app, it doesn't? Can you still use it on mobile some other way?

shazbot,

Ah, okay, so it works on mobile Safari, but with the caveat that you can't save it as a pseudo app to your home screen. This seems pretty good overall, we can mention that in the documentation. A few other users reported trying to create PWAs with some special apps (not Userscripts) and reported the same outcome. It's because they essentially blacklist extra dependencies.

Overall, I'd say this is a positive indication that it's working, yes? This is the outcome we were hoping for, as Userscripts closely resembles GreaseMonkey's API, so once we added support for the latter, it was all but guaranteed to work on the former.

shazbot,

I've been thinking about this. I think I would say: hide posts for the duration of the browser session and localized only to that tab, yes, eminently doable, and they won't return while you browse around until you exit the browser. But for permanent storage, we have to store the ID of each post in perpetuity, and this will necessarily grow to epic proportions over time as you hide stuff, but there is a small upper bound (5MB) on how much can be retained persistently across all apps. In addition, you'd be carrying around the ID of every post you've blocked before and it would be visible to other tabs in your browser, which is a small security concern insofar as it vaguely indicates your preferences. So there is a security and performance negative to this. I don't think we should retain any such information, only generic information such as on/off states, etc. Hope this is clear.

shazbot,

There is no server load, I am talking about the equivalent to cookies: sessionStorage and localStorage. Albeit small, the performance drag comes from parsing a growing list of IDs, and the fact that 5MB is shared across the entire browser for all scripts and applications, and the aforementioned security consideration. When I said "we have to store," I was talking about the localStorage method. Also, KES should never callback to a remote server to store settings, we are against that.

shazbot,

Alright, looked into it some more and I think we can do this using GreaseMonkey's internal storage, which is private to an atomic script and not accessible elsewhere. I'll work up a prototype. It will probably work best with infinite scrolling on the thread index enabled.

shazbot,

Good news, got this working as you requested and it is going into the next release. Hides threads on the fly and saves that permanently for later. Also restores previously hidden threads on the page if you disable it, and resets the storage. It works rather well! Need to optimize some stuff, but otherwise it is good to go.

shazbot,

If you're on >=2.0.0, the wrench icon will show a notification symbol if there is an update, then you can open KES and click the "install update" button through there. If you're below 2.0.0, there is no wrench notification, but you'll see an "install update" button if there is one available when you open the main KES menu. Otherwise, if you haven't interacted with KES in 24 hours, most script managers download updates in the background, but the consistency is a bit spotty. It probably won't be out for another week or so, it is a biggish release incorporating many new add-ons, as seen here: https://github.com/aclist/kbin-kes/milestone/4

shazbot,

Still investigating. One user on iOS tablet/Safari/Userscripts has reported it working. @Noki would you mind conferring with @fuzz and checking if your settings are aligned?

shazbot,

Take a look at this thread, think we have the smoking gun here after putting the pieces together and looking at what is different in your setups. It seems to be a totally cosmetic issue: KES is loading, but the wrench icon got buried in the attenuated navbar on mobile view. This explains why it worked on tablet Safari but not for users on phones. This should be easy to fix now that we know the scope of the problem.

shazbot,

May I ask what mobile phone you are using? There is a hotfix live now that should move the wrench icon into the hamburger menu if the viewport is too small.

shazbot,

Hmm, thank you for the data point. If you are rotating your phone, it's going into the "desktop view" and the wrench will be on the far right. As of 2.0.6, the wrench should be in the hamburger menu on the upper left. Can you try tapping that and looking inside to see if you find the wrench in there now?

shazbot,

My pleasure! Hopefully the mystery is solved now.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • JUstTest
  • All magazines