Live data from Hacker News

Dotjs — hack the web

defunkt.io

21–30 of 66 posts

Re: Dotjs — hack the web

#22
post #13

Requires Ruby? Why...

It looks like Ruby is only needed for the file server. You could easily substitute a Python file server (cd .js; python -m SimpleHTTPServer 3131). You could use a remote Apache server for synchronizing your scripts. I agree that Ruby is a little overkill, but it is simple enough to run easily on a Mac, and it is extensible for hackers.

Sounds like a relatively easy way to replace dependence on Ruby would be to just load the scripts directly from one's GitHub repo, where all your scripts can be easily synchronized.

Re: Dotjs — hack the web

#23
"GreaseMonkey user scripts are great, but you need to publish them somewhere and re-publish after making modifications."

Publish them where? I don't understand this. Whenever I change a user.js file and save it the browser updates it and it's ready to go next time the page reloads.

Side node: Scriptish is a fork of greasemonkey with many cool extras. https://addons.mozilla.org/en-US/firefox/addon/scriptish/

Re: Dotjs — hack the web

#24
post #20

Earlier quoted context omitted.

It looks like Ruby is only needed for the file server. You could easily substitute a Python file server (cd .js; python -m SimpleHTTPServer 3131). You could use a remote Apache server for synchronizing your scripts. I agree that Ruby is a little overkill, but it is simple enough to run easily on a Mac, and it is extensible for hackers.

If you use your own server make sure you set the Access-Control-Allow-Origin header: https://github.com/defunkt/dotjs/blob/master/bin/djsd#L26 (Also, Ruby comes with OS X (just like Python) so it seemed a sane choice.)

But Python comes with OSX and Ubuntu

Re: Dotjs — hack the web

#26
"Protip Keep ~/.js under version control and share it with the world."

This could result in a really cool network graph on github, couldn't it?

Also, when defunkt says protip, take it.

Re: Dotjs — hack the web

#27
post #8

I've sneakily been using this for months on Hacker News itself- I just .hide() stories past around story #15. More signal, less noise. And it's just jQuery, so it's really easy to whip up. Bonus points for it being so easy to share, too: https://github.com/holman/holman-js/blob/master/news.ycombin...

It's interesting how perspectives differ on what is considered noise. On the average day I start my browsing here around link 15, or even the new queue.

You're pretty much guaranteed to hear of anything hitting the front page anyway if it was meaningful to begin with. If not, it's probably some momentary obsession or buzzword bingo (say, "Google", "Social", "Facebook killer", "Privacy", "Product launch" to take an ephemeral example :))

Re: Dotjs — hack the web

#28
post #24
post #20

Earlier quoted context omitted.

If you use your own server make sure you set the Access-Control-Allow-Origin header: https://github.com/defunkt/dotjs/blob/master/bin/djsd#L26 (Also, Ruby comes with OS X (just like Python) so it seemed a sane choice.)

But Python comes with OSX and Ubuntu

But Ruby is the language the developer uses when doing something basic like this?

Re: Dotjs — hack the web

#29

I'm waiting for someone to build a social browser extension on top of something like this. Anyone could submit custom CSS/JS for a website and the most upvoted "theme" automatically gets loaded. Sure the JS security issues might be a nightmare, but the web would look soooo much prettier!

http://userscripts.org/

Re: Dotjs — hack the web

#30
post #24

Earlier quoted context omitted.

But Python comes with OSX and Ubuntu

But Ruby is the language the developer uses when doing something basic like this?

Python usually, as far as I can tell. Either language is fine, I just think these things should be done in something that comes pre-installed on more systems.
Post reply on HN