Greasy Fork

WuxiaWorld

Script to change the "skin" of the web page to create a mobile and large screen "reader".

目前为 2018-05-22 提交的版本。查看 最新版本

// ==UserScript==
// @name     WuxiaWorld
// @description Script to change the "skin" of the web page to create a mobile and large screen "reader".
// @version  2
// @include https://www.wuxiaworld.com/novel/*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @require https://greasyfork.org/scripts/368324-lightnovels/code/LightNovels.js?version=599008
// @grant    GM.getValue
// @grant    GM.setValue
// @namespace https://greasyfork.org/users/186987
// ==/UserScript==

var c = $("div.fr-view");
if(c.length){
  var st = c.prev().find("div>h4").text();
  
  c.find("[style]").removeAttr('style');
  c.find('[dir]').removeAttr('dir');

	var temp = $("div.top-bar-area>ul.list-inline");
	var t = temp.find("li.caption>a>h4").text();
  var p = temp.find('li.prev>a').attr("href");
	var toc = temp.find("li.caption>a").attr("href");
	var n = temp.find('li.next>a').attr("href");

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