Created
August 31, 2011 01:05
-
-
Save iloveitaly/1182569 to your computer and use it in GitHub Desktop.
Format Vatical / Papal Documents / Encyclicals
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
<a href="javascript:(function(){var jsCode = document.createElement('script'); jsCode.setAttribute('src', 'https://raw.github.com/gist/1182569/30cc436e68b6a4f455cb354a773fbf9bd5723b5c/format_vatican.js'); document.body.appendChild(jsCode); }())">Format Vatical Website Bookmarklet</a> |
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
// created by Michael Bianco <http://cliffsidecatholic.com/> | |
function vatican_format() { | |
$$('[width=609]').each(function(el) { el.setStyle('width', '100%'); }) | |
$$('body > table')[0].setStyle('display', 'none') | |
$$('hr').each(function(el) { el.destroy(); }) | |
$$('font').each(function(el) { | |
el.erase('size', ''). | |
setProperty('color', '') | |
}) | |
new Element('style', { | |
"html":"body,p,i,font{color:#0d0d0d !important; font-family:Palatino, serif !important;text-align:justify !important;font-size:14px; line-height:1.5;}" + | |
"b,b>i,center,center>font{font-family:Gill Sans, sans-serif !important; color:black !important; font-style: normal !important; font-size:20px !important; font-weight:normal !important; letter-spacing:2px; text-align:left !important; text-transform:uppercase;}" + | |
"center>b,center {color:black; text-align:left !important; }" | |
}).inject($$('head')[0]) | |
} | |
var headID = document.getElementsByTagName('head')[0]; | |
var newScript = document.createElement('script'); | |
newScript.type = 'text/javascript'; | |
newScript.src = 'https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools.js'; | |
newScript.onload = function() { | |
vatican_format() | |
} | |
headID.appendChild(newScript); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment