Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Additional Screenshots site bug (+other fixed problem)

edited May 12 in userstyles.org Chrome
Found two bugs.


First the Additional Screenshots feature is currently broken with a simple fix: It incorrectly adds .../images/... as part of the url - the screenshot is uploaded to userstyles.org indeed - but not to /images/. Removing /images/ from the url means images can be manually linked to with a href, but that's hardly desired.

Example:
Uploaded a screenshot for my new style recently, userstyles.org seems to expect it to be here:
https://userstyles.org/images/style_screenshots/142517_additional_26358.jpeg?r=1494570376 (404)
but it is actually getting uploaded here:
https://userstyles.org/style_screenshots/142517_additional_26358.jpeg?r=1494570376


Second "bug" is a bit more obscure really....
EDIT: Fixed thanks to JourneyOver!
I made a Userstyle that specifically restyles the Stylish plugin itself for Chrome, making it dark. Ironically my style is flagged as not compatible with Chrome, so users have to install it manually. This is especially ironic since it's _only_ usable on Chrome. Now to be honest I don't know if the javascript for style installation is done by your server or injected by the plugin itself, haven't looked.

Anyway, here is my userstyle:
https://userstyles.org/styles/142517/stylish-dark-chrome-plugin
..."not available on chrome" should be "only available on chrome" :P
Is it in any way fixable? Or is my style doomed to forever having to be manually installed? :(

Comments

  • for your second issue try turning your @-moz-document url-prefix("chrome-extension:") into @-moz-document regexp("chrome-extension://.*") and see if that fixes it.
  • for your second issue try turning your @-moz-document url-prefix("chrome-extension:") into @-moz-document regexp("chrome-extension://.*") and see if that fixes it.

    Wow, great idea!
    Can't believe I never thought of trying that - works like a charm! >:D<
  • for your second issue try turning your @-moz-document url-prefix("chrome-extension:") into @-moz-document regexp("chrome-extension://.*") and see if that fixes it.

    Wow, great idea!
    Can't believe I never thought of trying that - works like a charm! >:D<
    Glad to hear that fixed it ^^
  • It just dawned on me why it is possible to restyle the Stylish extension in Chrome. :D

    Sure Chrome doesn't allow css-injection into extensions nor the (core-)browser itself.
    But it does of course allow an extension to style itself as much as it pleases.

    That's exactly what's happening here!
    The Stylish extension is taking my style and injects it into itself.
    The source of the injection is the extension itself: Chrome approves!
    :-bd
Sign In or Register to comment.