Created
November 12, 2012 06:27
-
-
Save ravindranathakila/4057815 to your computer and use it in GitHub Desktop.
Easy Tool To Summarise Webpages On The Fly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function userSel(){if(document.getElementById('ilp_summarize_box') == undefined){ilp_para_id = 0;ilp_box = document.createElement('div');ilp_box.id = 'ilp_summarize_box';ilp_box.style.position='absolute';ilp_box.style.backgroundColor='#ffffff';ilp_box.style.zIndex = 99999;document.childNodes[1].insertBefore(ilp_box,document.childNodes[1].firstChild);ilp_button = document.createElement('a');ilp_button.appendChild(document.createTextNode('[close]'));ilp_button.name='close';ilp_closed = 'Done';ilp_button.href ='javascript:(function(){document.childNodes[1].removeChild(ilp_box)})();';ilp_box.appendChild(document.createElement('hr'));ilp_box.appendChild(ilp_button);ilp_box.appendChild(document.createElement('hr'));} if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) { txt = document.getSelection(); } else if (document.selection) { txt = document.selection.createRange().text; } else { txt = ''; }if(confirm(txt,'Is this right?')){var textNode = document.createTextNode(txt);var para = document.createElement('div');para.id = 'ilp_para_id'+ilp_para_id;ilp_para_id++;para.onmouseover = 'javascript:ilp_box.removeChild(\''+para.id+'\');';para.appendChild(textNode);document.getElementById('ilp_summarize_box').appendChild(para);document.getElementById('ilp_summarize_box').appendChild(document.createElement('hr'));} })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment