Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LiSA Official Blog Reader
// ==UserScript==
// @name LiSA Official Blog Reader
// @namespace http://monoweb.info/
// @include http://ameblo.jp/lxixsxa/*
// @version 1.0.0
// ==/UserScript==
Array.prototype.forEach.call(document.querySelectorAll('.subContents'), function(content) {
var html = content.innerHTML;
html = html.replace(/([^>])<br><br>([^<])/g, '$1$2');
html = html.replace(/<br>(\s*<br>)+/g, '<br>');
content.innerHTML = html;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.