Created
January 29, 2011 22:02
-
-
Save edvakf/802248 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @include http://mojix.org/* | |
| // ==/UserScript== | |
| (function() { | |
| var b = document.querySelector('.entry_body'); | |
| b.innerHTML = b.innerHTML.replace(/(<br>\s*)?<([\s\S]*?)>(。)?(\s*<br>)?/g, function($0,$1,$2,$3,$4) { | |
| return '<blockquote style="background-color:#f8f8f8;border:double black 3px;padding:0.5em;">' + $2 + ($3||'') + '</blockquote>'; | |
| }); | |
| }()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment