@@ -37,7 +37,7 @@ sf.tags = [
37
37
"name" : "code" ,
38
38
"tag" : "code" ,
39
39
"src" : "https://raw.githubusercontent.com/Remix-Design/RemixIcon/master/icons/Editor/code-view.svg" ,
40
- "fillers" : [ "``` " , "`` `" ] ,
40
+ "fillers" : [ "`" , "`" ] ,
41
41
"formatter" : function ( part1 , part2 ) {
42
42
return "<code>" + part2 + "</code>" ;
43
43
}
@@ -57,12 +57,15 @@ sf.tags = [
57
57
"src" : "https://raw.githubusercontent.com/Remix-Design/RemixIcon/master/icons/Design/paint-brush-line.svg" ,
58
58
"fillers" : [ "[color=red]" , "[/color]" ] ,
59
59
"formatter" : function ( part1 , part2 ) {
60
+ part1 = part1 . replace ( / [ ^ a - z A - Z 0 - 9 \# \( \) \, ] / g, "" ) ; // Strip chars for security
61
+ console . log ( part1 ) ;
60
62
return "<span style='color:" + part1 + "'>" + part2 + "</span>" ;
61
63
}
62
64
} ,
63
65
{
64
66
"name" : "link" ,
65
67
"tag" : "link" ,
68
+ "dontshow" : true ,
66
69
"src" : "https://raw.githubusercontent.com/Remix-Design/RemixIcon/master/icons/Editor/link.svg" ,
67
70
"fillers" : [ "[link=URLHERE]" , "[/link]" ] ,
68
71
"formatter" : function ( part1 , part2 ) {
@@ -75,7 +78,7 @@ sf.tags = [
75
78
"dontshow" : true ,
76
79
"fillers" : [ "[easteregg]" ] ,
77
80
"formatter" : function ( part1 , part2 ) {
78
- return "<a href='http://frypup.is-great.net/'> ( ͡° ͜ʖ ͡°)</a> " ;
81
+ return "( ͡° ͜ʖ ͡°)" ;
79
82
}
80
83
} ,
81
84
{
@@ -86,7 +89,7 @@ sf.tags = [
86
89
}
87
90
] ;
88
91
89
- // Firstly , initialize the formatter, and its icons.
92
+ // First , initialize the formatter, and its icons.
90
93
// This is executed on the next block
91
94
sf . init = function ( ) {
92
95
var textareaFinder = "[name=compose-comment],[name=content]" ;
@@ -190,7 +193,7 @@ sf.init = function() {
190
193
}
191
194
192
195
// Simply a .5 second timer after page load. JS onload doesn't seem
193
- // to work very well.
196
+ // to work very well here .
194
197
setTimeout ( function ( ) {
195
198
var messages = document . getElementsByClassName ( "comment-text" ) ;
196
199
if ( messages . length == 0 ) {
0 commit comments