remove "Show Dice Roll"

This commit is contained in:
ccd0 2014-08-23 10:48:25 -07:00
parent 2557f86ace
commit f87380f22f
3 changed files with 0 additions and 16 deletions

View File

@ -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'

View File

@ -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]

View File

@ -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}"