Skip to content

9 comments

how is this any better than the various userscript/style extensions out there?

it’s much easier if you have multiple regex includes per script/style instead of one subdomain rule.

all the metadata on http://userscripts.org and http://userstyles.org is there for a reason. i use scriptish and stylish in my firefox, and think that searching for styles on the respective sites and two-click-installing them is much superior to writing them yourself and then generating symlinks for each subdomain you want the script/style to apply to.

16 points

the answer is on the title; maintaining script/style extensions under ~/.w3 is more convenient and simple. check out my ~/.w3: https://github.com/azer/w3files

3 points

so the only reason you’d want to use it is if you don’t want to open your browser before editing your scripts, but are willing to sacrifice the following for that:

  • the vast library of userscripts and styles that are shared by many people

  • easy configuration of…

    • the include-urls, or only need to apply your scripts to one subdomain each
    • the event hook (document-begin/end, dom-content-loaded, onload, head)
  • by not running an additional webserver, the better…

    • performance
    • security
  • the ability to conveniently access the scripts affecting the current site in your browser

i agree that it would be awesome to be able to access userstyles and -scripts with your favourite editor, and the webserver idea is nice, but i can’t see that many would give up those possibilities for that nifty, but not too useful feature.

7 points

That's interesting, but a couple of things:

  • Can you support an XDG dir too? either ~/.config/w3 or ~/.local/share/w3 (I would go for the latter)
  • How is this possible? This seems like a huge security risk.

Oh, and post in /r/myopensource if the project's yours :)

3 points
unknown author

The program runs as a daemon and acts like a mini webserver. The Chrome extension will run on each page, grab the script from the webserver and if found it will append it to the document:

'http://localhost:3132/' + window.location.host.replace('www.', '') + '.js'

No security issues as far as I can see, just make sure port 3132 isn't accessible outside your LAN.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.