Giter Site home page Giter Site logo

svelte-detector's Introduction

svelte-detector

A simple Chrome / Firefox extension to see if a website is using Svelte.

๐ŸฆŠ Get it for Firefox

๐ŸŸก Get it for Chrome

Build

If you want to build the extension yourself and install it that way just follow these instructions:

  1. npm install
  2. npm run build
  3. A .zip file should be in the web-ext-artifacts directory

svelte-detector's People

Contributors

alb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

svelte-detector's Issues

False negative results

Hey, thanks for the plugin, I found it quite interesting to see Svelte apps across the web!

I found that our svelte apps are not detected by it. Probably because the class generation rules was changed. As an example, in my personal project de.pavli.cc class names are prefixed with s-. This is the default behavior, I didn't change anything.

Relying on s- prefix is pretty generic and could produce false-positive results tho.

However sveltekit apps often use svelte-* data attributes like data-sveltekit-preload-data="hover", so we can maybe check it?
Like

document.querySelectorAll('[data-sveltekit-preload-data],[data-sveltekit-preload-code],...')

or we can extend existing regexp.

If you're interested, I can make a PR.

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.