zlacker

[parent] [thread] 8 comments
1. phil+(OP)[view] [source] 2007-02-21 22:55:54
bookmarklet! I would submit more links if there was a bookmarklet that submitted the page I was on.
replies(2): >>danw+h3 >>pg+981
2. danw+h3[view] [source] 2007-02-23 04:52:53
>>phil+(OP)
EDIT: I should have said this is a submit article bookmarklet. I'm working on trying a like/dislike.

I've just made a realy quick and dirty bookmarklet. It's only tested in firefox 2 and it's not quite how I would like it to work but it's a start. I'll hopefully update it later to work better.

Just add the following URL as a bookmark:

javascript:(function(){var d=document;var b=d.body;var c=b.insertBefore(d.createElement('center'),b.firstChild); var dv=c.appendChild(d.createElement('iframe'));dv.id='ifrm'; dv.height='30%';dv.width='100%';dv.src='http://news.ycombinator.com/submit'; d.getElementById('ifrm').scrollIntoView(); })();

Let me know if it works.

replies(2): >>brett+d6 >>eli+Y7
◧◩
3. brett+d6[view] [source] [discussion] 2007-02-24 00:36:51
>>danw+h3
The main functionality I would want out of a submit bookmarklet is prepopulating the url field so I don't have to copy and paste it. Showing the submit page in context of the page I am on does not help as much.
replies(1): >>eli+X7
◧◩◪
4. eli+X7[view] [source] [discussion] 2007-02-24 19:14:12
>>brett+d6
Then I would suggest that a new feature be the ability to pass url parameters to the submit form that prepopulate the url and/or title fields.

As it stands, there's no real way to do it in a bookmarklet. Firefox's XSS security policies won't allow it.

replies(1): >>danw+Eh
◧◩
5. eli+Y7[view] [source] [discussion] 2007-02-24 19:16:56
>>danw+h3
Which brings up another feature request: tweak the CSS so that really long text in a comment (without any spaces) doesn't cause the whole page to expand beyond 1024 pixels.
replies(1): >>bluemo+Ha
◧◩◪
6. bluemo+Ha[view] [source] [discussion] 2007-02-25 21:27:24
>>eli+Y7
This problem is firefox specific. For whatever reason, IE does The Right Thing. Actually, the whole site just looks better in IE, so maybe this should be a request for better Firefox support :)
◧◩◪◨
7. danw+Eh[view] [source] [discussion] 2007-02-28 12:21:06
>>eli+X7
Prepopulation is what I wanted too. If someone could update the submit page so that it accepts something like ?url=site.com&title=foobar in the url it would be great.

At least now its easy to drag and drop from the page the url and title. Any one know a way to get prepopulation to work?

replies(1): >>eli+Hk
◧◩◪◨⬒
8. eli+Hk[view] [source] [discussion] 2007-03-01 13:23:37
>>danw+Eh
As I said before, I don't think it can work (in Firefox) without a change in the code. Firefox's default security settings won't let you modify the content of html from another domain (I don't think...)
9. pg+981[view] [source] 2007-03-17 17:50:00
>>phil+(OP)
done (by you, in fact)
[go to top]