View on GitHub

Fenki js helpers

JavaScript helpers lib for handling load iframe within closable div and hiding it (easy access to two pages like Bing Traslate), loading XMLHTTPRequest2 across domains content, other useful stuff...

download .ZIPdownload .TGZ

iframe_window_helper.js

Adds button to load in-frame Bing translator window. You can load library to pre-load any other page without leaving current page.

<script>(function(f,e,n,k,i){
if(!e.getElementById('iframe_window_helper_script')){
var n=e.createElement(n),y=e.getElementsByTagName(i)[0];
n.setAttribute('id','iframe_window_helper_script');n.async=1;
n.src=k;y.appendChild(n);if(typeof(IFrameWindowHelper) == 'undefined'){
n.onload = function() {
TranslateWindow.Button("Bing Translate","Collapse");}}}})
(window,document,'script',
'//gubnota.github.io/fenki_js_helpers/lib/bing_trans/iframe_window_helper.js',
'head');</script>

monkey_userscripts

gubnota.github.io/fenki_js_helpers/plugin/monkey

Browse userscripts here.