-
Notifications
You must be signed in to change notification settings - Fork 1
/
tidy.min.js
1 lines (1 loc) · 1.64 KB
/
tidy.min.js
1
javascript:(function()%7Bjavascript%3A%20(function()%20%7B%0A%20%20%20%20console.log('start')%3B%0A%20%20%20%20var%20jsCode%20%3D%20document.createElement('script')%3B%0A%20%20%20%20jsCode.setAttribute('src'%2C%20'https%3A%2F%2Fcdn.rawgit.com%2Fmozilla%2Freadability%2F8525c6af%2FReadability.js')%3B%0A%20%20%20%20window.tidyHtml%20%3D%20(function()%20%7B%0A%20%20%20%20%20%20%20%20var%20loc%20%3D%20document.location%3B%0A%20%20%20%20%20%20%20%20var%20uri%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20spec%3A%20loc.href%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20host%3A%20loc.host%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20prePath%3A%20loc.protocol%20%2B%20'%2F%2F'%20%2B%20loc.host%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20scheme%3A%20loc.protocol.substr(0%2C%20loc.protocol.indexOf('%3A'))%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20pathBase%3A%20loc.protocol%20%2B%20'%2F%2F'%20%2B%20loc.host%20%2B%20loc.pathname.substr(0%2C%20loc.pathname.lastIndexOf('%2F')%20%2B%201)%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20var%20article%20%3D%20new%20Readability(uri%2C%20document).parse()%3B%0A%20%20%20%20%20%20%20%20document.children%5B0%5D.innerHTML%20%3D%20article.content%3B%0A%20%20%20%20%20%20%20%20var%20tidyStyle%20%3D%20document.createElement('link')%3B%0A%20%20%20%20%20%20%20%20tidyStyle.setAttribute('href'%2C%20'https%3A%2F%2Fkepano.s3.amazonaws.com%2Ftidy.css')%3B%0A%20%20%20%20%20%20%20%20tidyStyle.setAttribute('rel'%2C%20'stylesheet')%3B%0A%20%20%20%20%20%20%20%20document.head.appendChild(tidyStyle)%3B%0A%20%20%20%20%7D)%3B%0A%20%20%20%20jsCode.onload%20%3D%20tidyHtml%3B%0A%20%20%20%20document.body.appendChild(jsCode)%3B%0A%7D())%3B%7D)()%3B