File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11( function ( ) {
22 'use strict' ;
33
4- var doRenderChatCode = function ( timeline ) {
5- var $timeline = $ ( '<div></div> ' ) . html ( timeline ) ;
4+ function highlight ( timeline ) {
5+ var $timeline = $ ( '<div>' ) . html ( timeline ) ;
66 var $messages = $timeline . find ( '.chatTimeLineMessage' ) ;
7-
87 if ( ! $messages . length ) {
98 return ;
109 }
1413 } ) ;
1514
1615 return $timeline . html ( ) ;
17- } ;
16+ }
1817
1918 var renderTimeLine = TimeLineView . prototype . renderTimeLine ;
2019 TimeLineView . prototype . renderTimeLine = function ( a , b ) {
21- b = doRenderChatCode ( b ) ;
20+ b = highlight ( b ) ;
2221 renderTimeLine . apply ( TimeLineView , [ a , b ] ) ;
2322 } ;
2423} ) ( ) ;
Original file line number Diff line number Diff line change 11{
22 "manifest_version" : 2 ,
33 "name" : " ChatWork Code Highlight!" ,
4- "version" : " 2.0.0 " ,
4+ "version" : " 2.0.1 " ,
55 "description" : " ChatWork Code Highlight!" ,
66 "icons" : {
77 "128" : " icons/128.png" ,
88 "48" : " icons/48.png" ,
99 "16" : " icons/16.png"
1010 },
11- "permissions" : [
12- " https://kcw.kddi.ne.jp/*" ,
13- " https://www.chatwork.com/*" ,
14- " tabs"
15- ],
1611 "short_name" : " CW Code Highlight" ,
1712 "content_scripts" : [
1813 {
You can’t perform that action at this time.
0 commit comments