Colaboratory
- Kenshin Wang
- 联络方式
- 2023/04/03 11:42:41
- 技术
- 适配代码
{
"name": "colab.google.com",
"title": "[[{(()=>{return $('title').text().trim().replace(' - Colaboratory','')})()}]]",
"desc": "",
"include": "[[{(()=>{let html='';$('html').append(`<sr-colab style=\"display:none\">${$('body').find('.notebook-cell-list').html()}</sr-colab>`);$('sr-colab').find('paper-icon-button').remove();$('sr-colab').children().map((idx,item)=>{const $target=$(item);if($target.hasClass('text')){html+=$target.find('.markdown').html()}else if($target.hasClass('code')){let pre='';if($target.find('.view-line').length>0){$target.find('.view-line').map((idx,code)=>{pre+=$(code).text()+'\\n'})}else if($target.find('[data-lang=\"notebook-python\"]').children()>0){$target.find('[data-lang=\"notebook-python\"]').children().map((idx,code)=>{if(code.innerText){pre+=code.innerText+'\\n'}})}html+=`<pre>${pre}</pre>`}});$('sr-colab').remove();return html})()}]]",
"exclude": [
"<sr-bad-empty>"
],
"url": "https://colab.research.google.com/drive/*",
"avatar": [
{
"name": ""
},
{
"url": ""
}
],
"paging": [
{
"prev": ""
},
{
"next": ""
}
]
}
安装当前站点