Attachment 'vivi.user.js'

Download

   1 //by Breeze (http://www.donews.net/changzheng)
   2 // ==/UserScript==
   3 
   4 var div = document.createElement("DIV");
   5 div.style.position = "absolute";
   6 div.style.right = "0px";
   7 div.style.bottom = "0px";
   8 div.style.visibility = "visible";
   9 div.style.width = "16px";
  10 div.style.height = "16px";
  11 div.style.cursor = "hand";
  12 div.style.cursor = "pointer";
  13 div.innerHTML = "<img src='http://image2.sina.com.cn/pfp/iweb/vivi.gif'>"
  14 div.onclick = function()
  15 {
  16 	add_collect();
  17 }
  18 document.documentElement.appendChild(div);
  19 
  20 function add_collect()
  21 {
  22 	d=document;
  23 	t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');
  24 	void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=vivi.sina.com.cn&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));
  25 	vivi.focus();
  26 }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2021-05-11 08:52:09, 36.0 KB) [[attachment:Greasemap.gif]]
  • [get | view] (2021-05-11 08:52:09, 5.7 KB) [[attachment:Greasemonkey_mp3.gif]]
  • [get | view] (2021-05-11 08:52:09, 0.9 KB) [[attachment:TexttoBloglines0.1.user.js]]
  • [get | view] (2021-05-11 08:52:09, 0.1 KB) [[attachment:hello.user.js]]
  • [get | view] (2021-05-11 08:52:09, 11.9 KB) [[attachment:vivi.scr1.gif]]
  • [get | view] (2021-05-11 08:52:09, 0.9 KB) [[attachment:vivi.user.js]]
  • [get | view] (2021-05-11 08:52:09, 0.9 KB) [[attachment:vivi1.1.user.js]]
  • [get | view] (2021-05-11 08:52:09, 4.7 KB) [[attachment:vivi1.1_ff_xpi]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.