remove "Show Dice Roll"
This commit is contained in:
parent
2557f86ace
commit
f87380f22f
@ -65,10 +65,6 @@ Config =
|
||||
false
|
||||
'Add buttons to navigate to top / bottom of thread.'
|
||||
]
|
||||
'Show Dice Roll': [
|
||||
true
|
||||
'Show dice that were entered into the email field.'
|
||||
]
|
||||
'Custom Board Titles': [
|
||||
true
|
||||
'Allow editing of the board title and subtitle by ctrl+clicking them'
|
||||
|
||||
@ -334,7 +334,6 @@ Main =
|
||||
['Thread Watcher (Menu)', ThreadWatcher.menu]
|
||||
['Index Navigation', Nav]
|
||||
['Keybinds', Keybinds]
|
||||
['Show Dice Roll', Dice]
|
||||
['Banner', Banner]
|
||||
<% if (tests_enabled) { %>
|
||||
['Build Test', BuildTest]
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
Dice =
|
||||
init: ->
|
||||
return if g.BOARD.ID isnt 'tg' or g.VIEW is 'catalog' or !Conf['Show Dice Roll']
|
||||
Post.callbacks.push
|
||||
name: 'Show Dice Roll'
|
||||
cb: @node
|
||||
node: ->
|
||||
return if @isClone or not dicestats = @info.email?.match /dice[+\s](\d+)d(\d+)/
|
||||
# Use the text node directly, as the <b> has two <br>. Count dice since 4chan imposes a maximum.
|
||||
roll = $('b', @nodes.comment).firstChild
|
||||
roll.data = "Rolled #{roll.data.split(',').length}d#{dicestats[2]}: #{roll.data.slice 7}"
|
||||
Loading…
x
Reference in New Issue
Block a user