レ点腫瘍学ノート

Top / 日記 / 2024年 / 9月1日

Workflowy関連Bookmarkletメモ

いつか使うか分からりませんが、過去に使っていたWorkflowyおよびPukiwiki関連のBookmarkletなどを忘れないようにここにメモしておきます。

Dynalist to Markdown変換

javascript:(function(){var list%3D%5B%5D%3Bp%3D%24('.is-currentRoot')%3Btext%3Dchild(p%2C1%2Clist)%3Bfunction child(x%2Cy%2Cz)%7Bvar c%3Dx.children('.Node-children').children('.Node-outer').children('.Node')%3Bif(c.length>0)%7Bz.push(%7Btitle%3Ax.children('.Node-self').children('.Node-contentContainer').children('.Node-content').text().trim()%2Cnode%3Ay%2Cchild%3Atrue%7D)%3By%3Dy%2B1%3B%7Delse%7Bz.push(%7Btitle%3Ax.children('.Node-self').children('.Node-contentContainer').children('.Node-content').text().trim()%2Cnode%3Ay%2Cchild%3Afalse%7D)%3B%7Dfor(var i%3D0%3Bi<c.length%3Bi%2B%2B)child(c.eq(i)%2Cy%2Cz)%3Breturn z%3B%7Dvar titiletxt%3D''%3Bvar outtxt%3D''%3Btitletxt%3Dlist%5B0%5D.title%3Bfor(i%3D1%3Bi<list.length%3Bi%2B%2B)%7Bif(list%5Bi%5D.child%3D%3Dtrue)%7Bouttxt%2B%3DArray(list%5Bi%5D.node %2B 1).join('%23')%2B' '%2Blist%5Bi%5D.title%2B'%5Cn%5Cn'%3B%7Delse%7Bouttxt%2B%3Dlist%5Bi%5D.title%2B'%5Cn%5Cn'%3B%7D%7Dw%3Dwindow.open()%3Bw.document.open()%3Bw.document.write('<!DOCTYPE html><html lang%3D%5C"ja%5C"><head><title>HASAMIscript<%2Ftitle><style type%3D"text%2Fcss">textarea%7Bwidth%3A100%25%3Bheight%3A500px%3B%7D<%2Fstyle><%2Fhead><body><textarea>'%2Btitletxt%2B'%5Cn%5Cn'%2Bouttxt%2B'<%2Ftextarea><%2Fbody><%2Fhtml>')%3Bw.document.close()%3B})();

Dynalist to Pukiwiki変換

javascript:(function(){var list%3D%5B%5D%3B p%3D%24('.is-currentRoot')%3B text%3Dchild(p%2C1%2Clist)%3B function child(x%2Cy%2Cz)%7Bvar c%3Dx.children('.Node-children').children('.Node-outer').children('.Node')%3B if(c.length>0)%7Bz.push(%7Btitle%3Ax.children('.Node-self').children('.Node-contentContainer').children('.Node-content').text().trim()%2Cnode%3Ay%2Cchild%3Atrue%7D)%3B y%3Dy%2B1%3B %7Delse%7Bz.push(%7Btitle%3Ax.children('.Node-self').children('.Node-contentContainer').children('.Node-content').text().trim()%2Cnode%3Ay%2Cchild%3Afalse%7D)%3B %7Dfor(var i%3D0%3B i<c.length%3B i%2B%2B)child(c.eq(i)%2Cy%2Cz)%3B return z%3B %7Dvar titiletxt%3D''%3B var outtxt%3D''%3B titletxt%3Dlist%5B0%5D.title%3B for(i%3D1%3B i<list.length%3B i%2B%2B)%7Bif(list%5Bi%5D.child%3D%3Dtrue)%7Bouttxt%2B%3DArray(list%5Bi%5D.node).join('%2A')%2B' '%2Blist%5Bi%5D.title%2B'%5Cn%5Cn'%3B %7Delse%7Bouttxt%2B%3Dlist%5Bi%5D.title%2B'%5Cn%5Cn'%3B %7D%7Dw%3Dwindow.open()%3B w.document.open()%3B w.document.write('<!DOCTYPE html><html lang%3D%5C"ja%5C"><head><title>HASAMIscript<%2Ftitle><style type%3D"text%2Fcss">textarea%7Bwidth%3A100%25%3B height%3A500px%3B %7D<%2Fstyle><%2Fhead><body><textarea>'%2Btitletxt%2B'%5Cn%5Cn'%2Bouttxt%2B'<%2Ftextarea><%2Fbody><%2Fhtml>')%3B w.document.close()%3B })();

Workflowy > markdown変換

deskflowy://import?name=WF2Markdown&script=!function(e)%7Bfunction%20t(e)%7Bif(NAP_LIB.getVisibleChildren)return%20NAP_LIB.getVisibleChildren(e)%3Bvar%20t%3D%22%E4%BD%BF%E7%94%A8%E3%81%A7%E3%81%AA%E3%81%8F%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%5Cn%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%22%3Bthrow%20alert(t)%2Cnew%20Error(t)%7Dfunction%20n(e)%7Breturn%20e%3De.replace(%2F%3Cb%3E(.*)%3C%5C%2Fb%3E%2Fg%2C%22**%241**%22).replace(%2F%3Ci%3E(.*)%3C%5C%2Fi%3E%2Fg%2C%22*%241*%22).replace(%2F%3C(u)%3E%2Fg%2C%22%26lt%3B%241%26gt%3B%22).replace(%2F%3C%5C%2F(u)%3E%2Fg%2C%22%26lt%3B%2F%241%26gt%3B%22)%2C%24(%22%3Cdiv%3E%3C%2Fdiv%3E%22).html(e).text()%7Dfunction%20i(e%2Ct)%7Bvar%20i%3Dt.getName().trim().length%3Fe%2Bn(t.getName())%2B%22%5Cn%5Cn%22%3A%22%22%3Breturn%20t.getNote().trim().length%3Fi%2Bn(t.getNote())%2B%22%5Cn%5Cn%22%3Ai%7Dfunction%20r(e%2Cn)%7Bfor(var%20a%3Di(%22%23%22.repeat(e%2B1)%2B%22%20%22%2Cn)%2Cl%3Dt(n)%2Co%3Dl.length%2Cp%3D0%3Bp%3Co%3Bp%2B%2B)%7Bvar%20d%3Dl%5Bp%5D%3B0%3D%3D%3Dt(d).length%3Fa%2B%3Di(%22%22%2Cd)%3Aa%2B%3Dr(e%2B1%2Cd)%7Dreturn%20a%7Dfunction%20a()%7Bvar%20e%3Ddocument.createRange()%3Be.selectNode(%24(%22%23preview_panel_text%22)%5B0%5D)%3Bvar%20t%3Dwindow.getSelection()%3Bt.removeAllRanges()%2Ct.addRange(e)%7Dvar%20l%3Dr(0%2CWF.currentItem())%3B!function(e)%7Bif(e.length)%7Bvar%20t%3D%24(%22%23preview_panel%22)%3Bt.length%3Ft.empty()%3A(t%3D%24(%22%3Cdiv%3E%3C%2Fdiv%3E%22%2C%7Bid%3A%22preview_panel%22%2Cstyle%3A%22position%3Aabsolute%3B%20top%3A0%3B%20left%3A0%3B%20z-index%3A2%3B%20width%3A100%25%3B%20height%3A100%25%3B%20background%3A%20rgba(0%2C0%2C0%2C0.5)%3B%22%7D)%2C%24(%22body%22).append(t))%3Bvar%20n%3D%24(%22%3Cdiv%3E%3C%2Fdiv%3E%22%2C%7Bstyle%3A%22position%3Afixed%3Bwidth%3A80vw%3Btop%3A50%25%3B%20left%3A0%3B%20right%3A0%3Btransform%3A%20translateY(-50%25)%3Bmargin%3A%20auto%3Bbackground%3A%20white%3Bborder%3A%203px%20solid%3B%20border-radius%3A%2010px%3Bpadding%3A%2010px%3Bfont-size%3A%2080%25%3B%22%7D)%3Bt.append(n)%3Bvar%20i%3D%24(%22%3Cdiv%3E%3C%2Fdiv%3E%22%2C%7Bid%3A%22preview_panel_text%22%2Cstyle%3A%22height%3A75vh%3Boverflow%3A%20auto%3Bmargin%3A%2010px%3B%22%7D)%2Cr%3D%24(%22%3Cpre%3E%3C%2Fpre%3E%22%2C%7Bstyle%3A%22white-space%3Apre-wrap%3B%22%7D)%3Br.text(e)%2Ci.append(r)%2Cn.append(i)%3Bvar%20l%3D%24(%22%3Cdiv%3E%3C%2Fdiv%3E%22%2C%7Bstyle%3A%22margin%3A%2010px%3Btext-align%3A%20right%3B%22%7D)%3B%24(%22%3Cbutton%3EAll%20Select%3C%2Fbutton%3E%22).bind(%22click%22%2Ca)%3Bvar%20o%3D%24(%22%3Cbutton%3E%3C%2Fbutton%3E%22%2C%7Bid%3A%22preview_panel_btn_all_copy%22%2Ctext%3A%22All%20Copy%22%7D)%3Bo.bind(%22click%22%2Cfunction()%7Ba()%2Cdocument.execCommand(%22copy%22)%7D)%2Cl.append(o)%3Bvar%20p%3D%24(%22%3Cbutton%3EClose%3C%2Fbutton%3E%22)%3Bp.bind(%22click%22%2Cfunction()%7B%24(%22%23preview_panel%22).remove()%7D)%2Cl.append(p)%2Cn.append(l)%7Delse%20%24(%22%23preview_panel%22).remove()%7D(l)%2C%24(%22%23preview_panel_btn_all_copy%22).click()%2Cwindow.getSelection().removeAllRanges()%7D()%3B

この記事に対するコメント

このページには、まだコメントはありません。

お名前:

更新日:2024-09-01 閲覧数:136 views.