1/** 2* @author Falchenko Maxim aka be3 3* @plugin_page http://tops.net.ua/jquery_addtocopy/ 4* @desc Adds a link to the copied text 5* @version 1.2 6* @example 7* $("#content").addtocopy(); 8* @license free 9**/ 10function get_cookie(e){for(cookie_name=e+"=",cookie_length=document.cookie.length,cookie_begin=0;cookie_begin<cookie_length;){if(value_begin=cookie_begin+cookie_name.length,document.cookie.substring(cookie_begin,value_begin)==cookie_name){var o=document.cookie.indexOf(";",value_begin);return-1==o&&(o=cookie_length),unescape(document.cookie.substring(value_begin,o))}if(cookie_begin=document.cookie.indexOf(" ",cookie_begin)+1,0==cookie_begin)break}return null}jQuery.fn.addtocopy=function(e){var o={htmlcopytxt:'<br>More: <a href="'+window.location.href+'">'+window.location.href+"</a><br>",minlen:25,addcopyfirst:!1};$.extend(o,e);var n=document.createElement("span");return n.id="ctrlcopy",n.innerHTML=o.htmlcopytxt,this.each((function(){$(this).mousedown((function(){$("#ctrlcopy").remove()})),$(this).mouseup((function(){if(window.getSelection){if(!(t=(e=window.getSelection()).toString())||t.length<o.minlen)return;(t=(i=e.getRangeAt(0)).cloneRange()).collapse(o.addcopyfirst),t.insertNode(n),o.addcopyfirst||i.setEndAfter(n),e.removeAllRanges(),e.addRange(i)}else if(document.selection){var e,i,t;if(!(t=(i=(e=document.selection).createRange()).text)||t.length<o.minlen)return;(t=i.duplicate()).collapse(o.addcopyfirst),t.pasteHTML(n.outerHTML),o.addcopyfirst||(i.setEndPoint("EndToEnd",t),i.select())}}))}))},$((function(){get_cookie("sid")||window.self!==window.top&&!window.location.search.includes("preview")||$(".page-fullnews").addtocopy({htmlcopytxt:'<br>ÐодÑобнее: <a href="'+window.location.href+'">'+window.location.href+"</a>",minlen:35,addcopyfirst:!1})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.