Permalink
Browse files

added the option to use overflow-wrap (v32.50)

  • Loading branch information...
toshiya44 committed Oct 25, 2017
1 parent 073baea commit 25161bb9c28e171f66055279c151681108dbee6a
Showing with 6 additions and 4 deletions.
  1. +6 −4 SpookyX-noupdate.user.js
@@ -2,7 +2,7 @@
// @name SpookyX
// @description Enhances functionality of FoolFuuka boards. Developed further for more comfortable ghost-posting on the moe archives.
// @author Fiddlekins
// @version 32.49
// @version 32.50
// @namespace https://github.com/Fiddlekins/SpookyX
// @include http://archive.4plebs.org/*
// @include https://archive.4plebs.org/*
@@ -34,11 +34,11 @@
// @require https://raw.githubusercontent.com/jquery/jquery-mousewheel/master/jquery.mousewheel.min.js
// @require https://raw.githubusercontent.com/carloscabo/colz/master/public/js/colz.class.min.js
// @grant none
// @icon http://i.imgur.com/LaYyYRl.png
// @icon https://i.imgur.com/LaYyYRl.png
// ==/UserScript==

if (GM_info === undefined) {
var GM_info = {script: {version: '32.49'}};
var GM_info = {script: {version: '32.50'}};
}

var settings = {
@@ -519,7 +519,7 @@ var settings = {
"name": "Word-break",
"description": "Firefox runs into difficulties with breaking really long words, test the options available until you find something that works. On auto this attempts to detect browser and select the most appropriate setting",
"type": "select",
"value": {"value": "Auto", "options": ["Auto", "Break-all", "Normal"]}
"value": {"value": "Auto", "options": ["Auto", "Break-all", "Normal", "Overflow-Wrap"]}
}
}
},
@@ -2461,6 +2461,8 @@ function postFlow(){
}
} else if (wordBreak === 'Break-all') {
$('#SpookyX-css-word-break').html('.text{word-break:break-all}');
} else if (wordBreak === 'Overflow-Wrap') {
$('#SpookyX-css-word-break').html('.text{overflow-wrap: break-word}');
} else { // wordBreak == Normal
$('#SpookyX-css-word-break').html('.text{word-break:normal}');
}

0 comments on commit 25161bb

Please sign in to comment.