Thanks for great effort! Nevertheless it doesnt seem to show up as a command when I put it in my editor Have you tried it?
On Feb 12, 7:49 pm, satyr <[email protected]> wrote: > Something like: > > const WistsSettings = "" + <![CDATA[ > wists_bgcolor = "#ffffff"; > wists_font = "9px Arial, geneva, sans-serif"; > wists_item_border_color = "#cccccc"; > wists_box_align = "left"; > wists_align = "left"; > wists_font_large = "11px Arial, geneva, sans-serif"; > wists_font_medium = "10px Arial, geneva, sans-serif"; > wists_link_color = "#000000"; > wists_font_color = "#666666"; > ]]>; > CmdUtils.CreateCommand({ > name: "wists", > argument: noun_arb_text, > preview: function(pb, args){ > CmdUtils.previewGet( > pb, > "http://www.wists.com/hmarstra/" + args.object.text, > {out: "js", item_skin: "js", cols: 4, rows: 80}, > function(js){ > pb.ownerDocument.location.href = > "javascript:" + encodeURI(WistsSettings + js); > }); > }, > > }); > On Fri, Feb 12, 2010 at 7:39 PM, Henrik Marstrander <[email protected]> > wrote: > > I have this (javascript?) code from Wists.com (web-bookmarking with > > nice image feature) where you can integrate all your saved wists for a > > certain tag (this code is for my "books" tag ..... see line 24) in > > your own webpage > > > I thought about integrating it in a ubiquity command so I could > > quickly change tagname by substituting the url with {QUERY} Im not > > shure if Im capable of doing this with ubiquty though. > > > Anyway lets say I decide to keep it as a webpage code. Does anybody > > know if its a similarly easy way with javascript to change the tag > > part of the url. (line 24) > > Maybe it would be possible to add some simple code which would add a > > textform to the page, where you could type a tagname so that the tag > > you type would substitute the tag part of the url "http:// > >www.wists.com/hmarstra/books" (in this case "books") (line24) > > In that way you could easily access all your Wists without saving a > > seperate document for each tag (I have over 100 different) > > > Alternativly there could be a pulldownmenu with lets say your 10 most > > used tags (which could be pre-defined in a list in the code) > > > ---------- > > > 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > 2 <html> > > 3 <head> > > 4 <meta content="text/html; charset=ISO-8859-1" > > 5 http-equiv="content-type"> > > 6 <title>make</title> > > 7 </head> > > 8 <body> > > 9 <br> > > 10 <script type="text/javascript"> > > 11 <!-- > > 12 wists_bgcolor = "#ffffff"; > > 13 wists_font = "9px Arial, geneva, sans-serif"; > > 14 wists_item_border_color = "#cccccc"; > > 15 wists_box_align = "left"; > > 16 wists_align = "left"; > > 17 wists_font_large = "11px Arial, geneva, sans-serif"; > > 18 wists_font_medium = "10px Arial, geneva, sans-serif"; > > 19 wists_link_color = "#000000"; > > 20 wists_font_color = "#666666"; > > 21 //--> > > 22 </script> > > 23 <script type="text/javascript" > > 24 src="http://www.wists.com/hmarstra/books? > > out=js&item_skin=js&cols=8&rows=100"></script><br> > > 25 </body> > > 26 </html> -- You received this message because you are subscribed to the Google Groups "ubiquity-firefox" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/ubiquity-firefox?hl=en.
