File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272// @include http*://yui-nya.com/*
7373// @include http*://www.l-sj.cc/*
7474// @include http*://htacg.cc/*
75- // @version 3.20.78
75+ // @version 3.20.79
7676// @grant GM_notification
7777// @grant GM_xmlhttpRequest
7878// @grant GM_setClipboard
707707 }
708708 sum ++ ;
709709 if ( sum > maxCss ) {
710+ var style = document . querySelector ( "style" ) ;
711+ var curRegs = style . innerHTML . pmatch ( / b a c k g r o u n d \- i m a g e : \s * u r l \( ( [ ^ \) ] + ) \) / gi) ;
712+ for ( var curReg of curRegs ) {
713+ if ( bgUrls . indexOf ( curReg [ 0 ] ) == - 1 )
714+ bgUrls += curReg [ 0 ] + "\n" ;
715+ }
710716 GM_setClipboard ( bgUrls ) ;
711717 alert ( "背景图片链接复制完毕" ) ;
712718 }
735741 processing = false ;
736742 } , 500 ) ;
737743 } ) ;
744+ var picTitle = document . querySelector ( "h1>a[href='https://www.mygalgame.com/gengxinrizhi.html']" ) ;
745+ if ( picTitle ) {
746+ var imgUrl = picTitle . parentNode . parentNode . parentNode . querySelector ( "div.img>img" ) . src ;
747+ var picBtn = document . createElement ( "a" ) ;
748+ picBtn . href = imgUrl ;
749+ picBtn . target = "_blank" ;
750+ picBtn . innerHTML = "<span class='animated_h1'>封面图</span>" ;
751+ picTitle . parentNode . appendChild ( picBtn ) ;
752+ }
738753 break ;
739754 case "紳士の庭" :
740755 if ( isHttps ) addInsertHandler ( [ [ "img" ] , [ [ 'p(:\\\/\\\/static\.gmgard\.com)' , 'ps$1' ] ] ] ) ;
You can’t perform that action at this time.
0 commit comments