index.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html>
  2. <html lang="ja" xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="author" content="SENOO, Ken" />
  6. <title>MaMiShare</title>
  7. </head>
  8. <body>
  9. <main>
  10. <fieldset>
  11. <style>
  12. /* @scope { */
  13. fieldset input, fieldset a {
  14. width: 100%;
  15. color: white;
  16. font-size: 2em;
  17. text-align: center;
  18. }
  19. fieldset div {
  20. display: flex;
  21. }
  22. /* } */
  23. </style>
  24. <legend>Share</legend>
  25. <div>
  26. <a style="background-color:#333"
  27. onclick="navigator.clipboard.writeText(
  28. document.title+' '+location.href);">Copy</a>
  29. <a style="background-color:#2c6ebd"
  30. href="https://b.hatena.ne.jp/entry/s/"
  31. onmousedown="this.href='https://b.hatena.ne.jp/entry/s/'
  32. +location.host+'/'+location.pathname">Hatena</a>
  33. <a style="background-color:#3b5998"
  34. href="https://www.facebook.com/sharer/sharer.php?t="
  35. onmousedown="this.href='https://www.facebook.com/sharer/sharer.php?t='
  36. +encodeURIComponent('QP '+document.title)
  37. +'&u='+encodeURIComponent(location.href);">Facebook</a>
  38. <a style="background-color:#1da1f2"
  39. href="https://twitter.com/intent/tweet?text="
  40. onmousedown="this.href='https://twitter.com/intent/tweet?text='
  41. +encodeURIComponent('QP '+document.title)
  42. +'&url='+encodeURIComponent(location.href);">X/Twitter</a>
  43. <a style="background-color:black"
  44. href="https://www.threads.net/intent/post?text="
  45. onmousedown="this.href='https://www.threads.net/intent/post?text='
  46. +encodeURIComponent('QP '
  47. +document.title+' '+location.href);">Threads</a>
  48. </div>
  49. <div>
  50. <input id="MaMiShare.host" list="MaMiList" type="email" inputmode="email"
  51. autocomplete="on" autocorrect="off" autocapitalize="off"
  52. formnovalidate='formnovaildate' placeholder="mstdn.jp misskey.io"
  53. style="background-color:rgb(158,194,63)" />
  54. <a style="background-color:rgb(99,100,255);"
  55. href="https://mamishare.jp"
  56. onmousedown="localStorage.setItem('MaMiShare.host',
  57. this.previousElementSibling.value);
  58. this.href=`https://${this.previousElementSibling.value}/share?text=QP `
  59. +encodeURIComponent(document.title+' '+location.href);
  60. ">MaMiShare</a>
  61. <script>
  62. window.addEventListener('load', () => {
  63. document.getElementById('MaMiShare.host').value =
  64. localStorage.getItem('MaMiShare.host');
  65. });
  66. </script>
  67. <datalist id="MaMiList">
  68. <option value="fedibird.com"></option>
  69. <option value="gp.tsukimi.club"></option>
  70. <option value="mastodon.social"></option>
  71. <option value="mattyaski.co"></option>
  72. <option value="meisskey.one"></option>
  73. <option value="misskey-square.net"></option>
  74. <option value="misskey.04.si"></option>
  75. <option value="misskey.backspace.fm"></option>
  76. <option value="misskey.cloud"></option>
  77. <option value="misskey.gg"></option>
  78. <option value="misskey.io"></option>
  79. <option value="misskey.niri.la"></option>
  80. <option value="misskey.one"></option>
  81. <option value="misskey.secinet.jp"></option>
  82. <option value="misskey.systems"></option>
  83. <option value="mk2.toyoko.in"></option>
  84. <option value="msk.ilnk.info"></option>
  85. <option value="mstdn.jp"></option>
  86. <option value="nijimiss.moe"></option>
  87. <option value="novelskey.tarbin.net"></option>
  88. <option value="pawoo.net"></option>
  89. <option value="submarin.online"></option>
  90. <option value="sushi.ski"></option>
  91. </datalist>
  92. </div>
  93. </fieldset>
  94. <fieldset>
  95. <legend>Follow</legend>
  96. <div>
  97. <a style="background-color:#f26522"
  98. href="https://web.gnusocial.jp/feed">
  99. RSS</a>
  100. <a style="background-color:#2bb24c"
  101. href="https://feedly.com/i/discover/sources/search/feed/https%3A%2F%2Fweb.gnusocial.jp">
  102. Feedly</a>
  103. <a style="background-color:#3b5998"
  104. href="https://www.facebook.com/profile.php?id=61556435340202">
  105. Facebook</a>
  106. <a style="background-color:#1da1f2"
  107. href="https://x.com/gnusocialjp">X/Twitter</a>
  108. </div>
  109. <div>
  110. <a style="background-color:black"
  111. href="https://www.threads.net/@gnusocialjp">
  112. Threads</a>
  113. <a style="background-color:rgb(0,112,255)"
  114. href="https://bsky.app/profile/did:plc:cgtlyuedd3qwmtycjv62xhma">
  115. Bluesky</a>
  116. <a style="background-color:#a22430"
  117. href="https://gnusocial.jp/gnusocialjp">
  118. GNU social</a>
  119. </div>
  120. </fieldset>
  121. </main>
  122. </body>
  123. </html>