• Stars
    star
    188
  • Rank 205,563 (Top 5 %)
  • Language
    JavaScript
  • License
    GNU Affero Genera...
  • Created over 6 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Share & export CSS tweaks from Chrome instantly.

StyleURL Extension

StyleURL is the easiest way for developers & designers to collaborate on CSS changes. This is the source code for the Chrome extension.

What's New (v1.1.15 - August 4, 2018)

Fix bug in feedback box in ViewStyleURL bar


Export CSS from Chrome

Make style changes from Chrome Inspector, and StyleURL will show you the diff of your CSS changes in the page.

Before StyleURL, to get your CSS tweaks out of Chrome DevTools, you had to select each element, remember what you changed, and copy it to a file. Now, StyleURL will automatically detect all of your changes and show you the diff.

Save to Gist

StyleURL integrates with GitHub Gists so that you can save and share your CSS changes easily. As of August 3rd, StyleURL creates secret gists only.

Preview live changes from a link

Add ?__styleurl=gist_${gistID} to the URL on a webpage, and it'll automatically load the CSS from the Gist onto that page (so long as there's a matching Stylefile).

Stylefile - an open standard for user style metadata

StyleURL is not the primary storage place for the userstyles. They're currently stored on GitHub as a Gist (more providers could easily be added later). This reduces the dependence of any centralized party for StyleURL to work, giving people better control of their data.

Example Stylefile:

---
version: 1.0 # Optional
domains: # Required
- news.ycombinator.com
url_patterns: # Required
- news.ycombinator.com/*
timestamp: '2018-07-27T04:21:42Z' # Optional
id: 6GJP # Optional, not currently used
redirect_url: https://news.ycombinator.com/ # Required
shared_via: StyleURL – import and export CSS changes from Chrome Inspector to a Gist
  you can share (like this one!) # Optional

StyleURL generates and uses a Stylefile to:

  • Detect which pages a StyleURL should be applied to (url_patterns)
  • Detect which domains a StyleURL correspond to (domains)
  • When activated from a different page, which absolute URL to redirect to (redirect_url)

Under the hood, the way this works is:

  • Given a StyleURL, the extension fetches the corresponding Gist, reads the Stylefile, and if the URL matches the current URL, downloads the stylesheets within the Gist and applies them to the current page.

Development

You'll want to point it to production and make sure chrome://flags/#allow-insecure-localhost is enabled (TODO more words)

More Repositories

1

git-peek

git repo to local editor instantly
JavaScript
698
star
2

hop

Zig
348
star
3

bun-aws-lambda

Attempting to get bun to run on AWS Lambda
TypeScript
58
star
4

svgj

Convert svg to jsx. Its fast.
HTML
57
star
5

peek

1-click from git repo to local editor
TypeScript
53
star
6

maxrss

Print how much memory was used in a spawned process
TypeScript
52
star
7

react-native-media-clipboard

Image support for the clipboard in React Native
Objective-C++
51
star
8

decky

Zero-bundle-size decorators for TypeScript
JavaScript
39
star
9

atbuild

Use JavaScript to generate JavaScript
TypeScript
35
star
10

bun-releases-for-updater

28
star
11

esbuild-plugin-ifdef

JavaScript
25
star
12

transmission-rpc

Control the Transmission BitTorrent client from Ruby
JavaScript
24
star
13

bun-livereload

Wrap a function with bun-livereload to automatically reload any imports inside the function the next time it is called
TypeScript
24
star
14

Jantire

Jantire was a digital turn-in box for homework that's graded on completion.
Ruby
16
star
15

webthing

JavaScript
9
star
16

yeet

TypeScript
9
star
17

fastbench

Fastbench.dev benchmarks repository
JavaScript
9
star
18

bun-pr

TypeScript
9
star
19

bun-gh-issues-count

TypeScript
7
star
20

htmlbuild

Automatically configure esbuild from html
JavaScript
5
star
21

bun-examples

4
star
22

zig-javascriptcore

JavaScriptCore Zig example
Zig
4
star
23

hw-perf-counters

C
3
star
24

bun-test-pkg

JavaScript
3
star
25

FundingList.us

FundingList makes it easy to find out how much funding a startup has received.
Ruby
2
star
26

karaokeweb

JavaScript
2
star
27

bun-test-repo

TypeScript
2
star
28

napi-plus100

TypeScript
2
star
29

transvoxel-data

Transvoxel tables for JavaScript
JavaScript
2
star
30

lockitron-ruby

Lock and unlock your lock your Lockitron-powered locks from bash and Ruby
Ruby
2
star
31

every-newspaper-in-us-with-twitter-handle

JavaScript
1
star
32

Email2Face

Email2Face is a little library that lets you search Facebook profile pictures by email
Ruby
1
star
33

try_git

1
star
34

devserverless

Go
1
star
35

tiny-next-app

CSS
1
star
36

zig-stat-amd64

Zig
1
star
37

WebKit-Other

1
star
38

fastbench.dev

TypeScript
1
star
39

email2face-web

The Web API of Emai2Face
Ruby
1
star
40

zig-translate-c

TypeScript
1
star
41

get-bun-zip

JavaScript
1
star
42

zig-ld-bug

Zig
1
star
43

nommit

Nommit iOS app
Objective-C
1
star
44

smsxy

SMSXY is a microframework for receiving, replying to, and sending text messages.
Ruby
1
star