Coder Social home page Coder Social logo

Comments (8)

sattes-faction avatar sattes-faction commented on September 15, 2024

I'm facing the same issue, why is this closed? Has it been fixed in the meantime?

from html_codesniffer.

amercier avatar amercier commented on September 15, 2024

Closed by mistake, re-opening

from html_codesniffer.

luketw avatar luketw commented on September 15, 2024

This is not a HTMLCS issue per se, and more a browser security issue. This is currently more a limitation on us using the GitHub Pages hosting for the bookmarklet, which does not support hosting via HTTPS as far as I know. Even if it did, I don't think you'd get any change in result because it might instead complain about the certificates potentially being different.

In Chrome's case, it should be throwing up a "shield" icon in the right hand side of the address bar saying it is blocked, where you can set it to load the script anyway. However, in my quick testing here it does not seem to be doing that all the time. Personally I think Firefox should be doing the same thing, but it seems to be more lenient on this count.

from html_codesniffer.

sattes-faction avatar sattes-faction commented on September 15, 2024

I see... maybe it's possible to add a hint in the JavaScript and at least pop up an alert window? Or is this something that can't be catched? Right now I only know why it isn't working when opening up the console.

from html_codesniffer.

luketw avatar luketw commented on September 15, 2024

Hi, and apologies for the long delay in replying.

I'm not sure whether the issue is Chrome not letting HTMLCS inject itself in, or whether it is running JS code from outside the HTTPS context. If it's the latter, then there is not much that can be done, certainly not something that can be caught. I'll look into it.

from html_codesniffer.

Jellyfrog avatar Jellyfrog commented on September 15, 2024

Chrome wont allow injecting http-content in a https-world...

Easy fix is to edit the bookmark and change the http to // and it will work for both.

from html_codesniffer.

pthorson avatar pthorson commented on September 15, 2024

I just modified the bookmarklet to have https: in the URL and it seems to be working fine now for my https site.

from html_codesniffer.

luketw avatar luketw commented on September 15, 2024

Pull #84 provided by Jellyfrog (using relative scheme - this is the same way the CDNs for the likes of jQuery) - combined with an update to Github's cert to make HTTPS (unofficially) supported on Github Pages sites - has now resolved this.

from html_codesniffer.

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.