Skip to content

Instantly share code, notes, and snippets.

@noskla
Last active August 8, 2018 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noskla/66ac4abee4e9fee11f8777789796ad49 to your computer and use it in GitHub Desktop.
Save noskla/66ac4abee4e9fee11f8777789796ad49 to your computer and use it in GitHub Desktop.
Tampermonkey script that makes z0r.de work on Waterfox.
// ==UserScript==
// @name z0rdeOnWaterfox
// @namespace http://tampermonkey.net/
// @version 1.0
// @description makes z0r.de work on waterfox
// @author Noone
// @match https://*.z0r.de/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let z0rname = window.location.pathname.slice(1);
if (z0rname != null)
{
let flashobject = document.createElement('object');
flashobject.setAttribute('type', 'application/x-shockwave-flash');
flashobject.setAttribute('data', '//z0r.de/L/z0r-de_' + z0rname + '.swf');
flashobject.style.height = '60%'; flashobject.style.width = '80%';
flashobject.style.top = '10px'; flashobject.style.left = '50%';
flashobject.style.transform = 'translateX(-50%)';
document.getElementById('flash').innerHTML = '';
document.body.appendChild(flashobject);
}
})();
Copy link

ghost commented Aug 8, 2018

hacker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment