[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

2018-12-29

ScrapboxFANZAエロ漫画登録するブックマークレート

つくった

javascript:(function(){

var p = document.getElementById("title");

var title=p.innerHTML;

if (!title) return;

var imagecontainer=document.getElementById("sample-video");

if (!imagecontainer) {

imagecontainer = document.getElementById("l-areaDetailMainContent")

}

var image = imagecontainer.getElementsByTagName("a")[0];

var imageurl = image.getAttribute("href");

var datacontainer = document.getElementsByClassName('page-detail')[0]

if (datacontainer) {

datacontainer = datacontainer.getElementsByTagName('table')[1].getElementsByTagName('a');

var pub = "#" + datacontainer[0].innerText;

var genre = "";

for (let i = datacontainer.length - 2;i >0; i--) {

genre = genre + "#" + datacontainer[i].innerText + '\n';

}

} else {

var pub = "#" + imagecontainer.getElementsByTagName('a')[2].innerText;

datacontainer = document.getElementById('l-areaDetailSubContent').getElementsByClassName('l-areaDetailProductInfo')[0].getElementsByTagName('a');

var genre = "";

for (let i = datacontainer.length - 1;i >= 0; i--) {

genre = genre + "#" + datacontainer[i].innerText + '\n';

}

genre = genre + "#コミック\n"

}

var starnumber = window.prompt('How many star?')

var star = "★".repeat(starnumber)

var lines='['+imageurl+']' + '\n' + pub + '\n\nメモ\n\n' + genre + '\n' + '#' + star;

var body=encodeURIComponent(lines);

window.open('https://scrapbox.io/skero/'+encodeURIComponent(title.trim())+'?body='+body)

})();

記事への反応(ブックマークコメント)

ログイン ユーザー登録
ようこそ ゲスト さん