Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==UserScript==
// @name LiveJournal: inline naspravdi iframe
// @namespace rowaasr13@gmail.com
// @include http://*.livejournal.com/*
// ==/UserScript==
//
// *************************************************************************************************************************************
// Donations https://www.paypal.com/cgi-bin/webscr?business=rowaasr13%40gmail.com&item_name=UserScripts+Development&cmd=_donations
// *************************************************************************************************************************************
(function(){function e(a,d,c,b){a=a.getElementsByTagName(d);d=a.length;if("object"===typeof b&&b.exec)for(delete f[0],delete f[1];d--;){var g=a[d],e=b.exec(g[c]);if(e)return f[0]=g,f[1]=e,f}else for(;d--;)if(g=a[d],g[c]==b)return g}var a=document,c=a.body;if("/"!=location.pathname){var f={},b=e(c,"a","href",/naspravdi\.info\//);b&&(b=b[0],c=e(c,"div","className","entry-content"))&&(a=a.createElement("iframe"),a.src=b.href,a.width="100%",a.height="800px",c.parentNode.insertBefore(a,c.nextSibling))}})(this)
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.