Last active
August 8, 2018 18:51
-
-
Save noskla/66ac4abee4e9fee11f8777789796ad49 to your computer and use it in GitHub Desktop.
Tampermonkey script that makes z0r.de work on Waterfox.
This file contains 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== | |
// @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); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hacker