-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFloating window.js
32 lines (27 loc) · 909 Bytes
/
Floating window.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// ==UserScript==
// @name TORN Floating window
// @namespace
// @version 1.0
// @description TORN Floating window
// @author Your Name
// @match https://www.torn.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
if (window.top === window.self) {
var container = document.createElement('div');
container.style.position = 'fixed';
container.style.left = '10px';
container.style.top = '50%';
container.style.transform = 'translateY(-50%)';
container.style.zIndex = '9999';
var iframe = document.createElement('iframe');
iframe.src = 'https://www.torn.com/factions.php';
iframe.style.border = 'none';
iframe.style.width = '300px';
iframe.style.height = '400px';
container.appendChild(iframe);
document.body.appendChild(container);
}
})();