Permalink
Browse files

Merge pull request #16 from toshiya44/master

Added the option to use overflow-wrap
  • Loading branch information...
Fiddlekins committed Oct 25, 2017
2 parents e5fd00d + 0b29386 commit e9dcb7de88191d322202ba237383cfabd76c4bb8
Showing with 17 additions and 10 deletions.
  1. +3 −0 CHANGELOG.md
  2. +6 −4 SpookyX-noupdate.user.js
  3. +2 −2 SpookyX.meta.js
  4. +6 −4 SpookyX.user.js
View
@@ -2,6 +2,9 @@ The changelog becomes progressively more comprehensive as I became progressively
The links to individual versions below are to copies of the script with the update URL removed. If you want automatic updates, install the script from the links on the [main page](https://github.com/Fiddlekins/SpookyX).
**v32.50:** *(2017-10-25)* - [GitHub](https://github.com/Fiddlekins/SpookyX/raw/v32.50/SpookyX-noupdate.user.js) - [Readme](https://github.com/Fiddlekins/SpookyX/blob/v32.50/README.md)
- added the option to use overflow-wrap to break long words
**v32.49:** *(2016-09-17)* - [GitHub](https://github.com/Fiddlekins/SpookyX/raw/v32.49/SpookyX-noupdate.user.js) - [Readme](https://github.com/Fiddlekins/SpookyX/blob/v32.49/README.md)
- readdded desustorage after accidentally removing it
View
@@ -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}');
}
View
@@ -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/*
@@ -36,5 +36,5 @@
// @grant none
// @updateURL https://github.com/Fiddlekins/SpookyX/raw/master/SpookyX.meta.js
// @downloadURL https://github.com/Fiddlekins/SpookyX/raw/master/SpookyX.user.js
// @icon http://i.imgur.com/LaYyYRl.png
// @icon https://i.imgur.com/LaYyYRl.png
// ==/UserScript==
View
@@ -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/*
@@ -36,11 +36,11 @@
// @grant none
// @updateURL https://github.com/Fiddlekins/SpookyX/raw/master/SpookyX.meta.js
// @downloadURL https://github.com/Fiddlekins/SpookyX/raw/master/SpookyX.user.js
// @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 = {
@@ -521,7 +521,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"]}
}
}
},
@@ -2463,6 +2463,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 e9dcb7d

Please sign in to comment.