Skip to content

Instantly share code, notes, and snippets.

@mono0x
Created March 31, 2012 02:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mono0x/2258796 to your computer and use it in GitHub Desktop.
Save mono0x/2258796 to your computer and use it in GitHub Desktop.
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