GravityTales

Script that modifies the design of http://gravitytales.com/ to create a reader view.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name     GravityTales
// @description Script that modifies the design of http://gravitytales.com/ to create a reader view.
// @version  2.3
// @include http://gravitytales.com/novel/*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @require https://greatest.deepsurf.us/scripts/368324-lightnovels/code/LightNovels.js?version=604207
// @grant    GM.getValue
// @grant    GM.setValue
// @namespace https://greatest.deepsurf.us/users/186987
// ==/UserScript==

var c = $("#chapterContent");
if(c.length){
  var t = $("#contentElement>div>h3").text();
  var st = $("#chapterContent>p:first").text();
  if(st === "Teaser below") {
    $("#chapterContent>p:first").remove();
    $("#chapterContent>hr:first").remove();
    st = $("#chapterContent>p:first").text() + " (Teaser)";
  }
  c.append($("#chapterNotes"));
  c.find("[style]").removeAttr('style');
  c.find("p:first").remove();
  c.find("p:first").remove();
  var p = $("div.chapter-navigation>a:first-child").attr("href");
  var toc = $("div.chapter-navigation>a:nth-child(2)").attr("href");
  var n = $("div.chapter-navigation>a:last-child").attr("href");

  createBody();
  setTitle(t);
  setSubTitle(st);
  setContent(c.html());
  setPrev(p);
  setTOC(toc);
  setNext(n);
}