Greasy Fork

Greasy Fork is available in English.

巴哈 『逆辰』大大的漫畫連載閱讀器

try to take over the world!

目前为 2019-12-28 提交的版本,查看 最新版本

// ==UserScript==
// @name        巴哈    『逆辰』大大的漫畫連載閱讀器
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       naruto861214@巴哈姆特
// @match        https://home.gamer.com.tw/creationDetail.php?sn=*
// @require  http://code.jquery.com/jquery-3.4.1.min.js
// @grant GM_addStyle
// ==/UserScript==





GM_addStyle ( `
    #replys {
        background-color:#e6e6e3 !important;
    }
   .nextarticle{
        background-color:#f2e15b!important;
padding:5px;
        color:black!important;

}
   .nextarticle:hover{
        background-color:#ffef71!important;
}
.nextarticle a{
         color:black!important;
text-decoration:none;
}
.MSG-box2{
border-bottom: 1px solid;

}
.msgreport{
width:unset;
}
` );

(function() {
    'use strict';
    //判定文章作者是否為jiangou
 if($('.TS1  .msghead.gamercard').attr('data-gamercard-userid')!='jiangou'){
 return;
 }

   //找到上下一話
$('.MSG-list8C').find('a').each(
function(a,b){
  var  $compare=$(b).find('b').text();
    var $compareLast=$(b).text();

    if(($compare=='下一話')||($compareLast=='上一話')){
        $(b).closest('div') .addClass('nextarticle');
        $(b).closest('table') .attr('border','0');
    }
$(b).attr('target','_self');
});

$('.BH-slave_btns').append($('#replys')) ;

})();