diff --git a/src/General/Config.coffee b/src/General/Config.coffee index b513d7f85..521a5432f 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -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' diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 165318bed..3fc4c427c 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -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] diff --git a/src/Miscellaneous/Dice.coffee b/src/Miscellaneous/Dice.coffee deleted file mode 100755 index 103507a15..000000000 --- a/src/Miscellaneous/Dice.coffee +++ /dev/null @@ -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 has two
. 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}"