建议tw支持bookmark里的javascript
现在在tw里点击bookmark里的项,如果该项是一段javascript,tw就无法把该段js代码应用于当前页,而是打开新页。这样使得很多js bookmark项失效,挺不方便的。建议tw支持!我常用的js bookmark项有:
Google bookmark it!: javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(%22http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%22+c(b.location)+%22&title=%22+c(b.title),%22bkmk_popup%22,%22left=%22+((a.screenX||a.screenLeft)+10)+%22,top=%22+((a.screenY||a.screenTop)+10)+%22,height=420px,width=550px,resizable=1,alwaysRaised=1%22);a.setTimeout(function(){d.focus()},300)})();
Gmail This! :javascript:bkmark_title='bookmark';popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open('https://mail.google.com/mail?view=cm&tf=0&to=&su=' + escape(document.title) + ' --- ('+escape(bkmark_title)+')&body=' + escape(Q) + escape('\n') +escape('<a href=')+escape(location.href)+'>'+escape(location.href)+escape('</a>'),'gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0);
还有一个自己写的,用于访问自己blog的。
强烈建议tw支持该功能!
页:
[1]