ゲーム
どこで買ったか、どのプラットフォームでプレイしたかを書く
ざっくりプレイ時間を書く
感想を書く
Scrapboxのリンクを使う方法は読み込みブロックされたため、minjsに変換したものを使う
code:script.min.js
javascript:(function(){var p=document.getElementById("appHubAppName"),title=window.prompt('Scrap "Steam" to your scrapbox.',p.innerText.trim());if(title){title="『"+title+"』";var image,imageurl=document.getElementsByClassName("game_header_image_full")0.getAttribute("src"),developers=document.getElementById("developers_list").innerText;console.log(developers);var devTags,publishers,pubTags,lines="開発者: "+developers.split(", ").map(i=>""+i+"").join(" ")+"\n"+("パブリッシャー: "+document.querySelector("#game_highlights > div.rightcol > div > div.glance_ctn_responsive_left > div:nth-child(4) > div.summary.column").innerText.split(", ").map(i=>""+i+"").join(" "))+"\n"+imageurl+" "+window.location.href+"\n#ゲーム #Steam\n";console.log(lines);var body=encodeURIComponent(lines);window.open("https://scrapbox.io/dicenull/"+encodeURIComponent(title.trim())+"?body="+body)}}())(); code:script.js
javascript:(function(){
var p = document.getElementById("appHubAppName");//ゲームのタイトル
var title = window.prompt('Scrap "Steam" to your scrapbox.', p.innerText.trim());
if (!title) return;
title = '『'+ title +'』';
var image=document.getElementsByClassName("game_header_image_full")0; var imageurl = image.getAttribute("src");
var developers = document.getElementById("developers_list").innerText;
console.log(developers);
var devTags = "開発者: " + developers.split(", ").map((i) => "+ i + "").join(" ");
var publishers = document.querySelector("#game_highlights > div.rightcol > div > div.glance_ctn_responsive_left > div:nth-child(4) > div.summary.column").innerText;
var pubTags = "パブリッシャー: " + publishers.split(", ").map((i) => "+ i + "").join(" ");
console.log(lines);
var body = encodeURIComponent(lines);
})();
code:bookmark