-
Notifications
You must be signed in to change notification settings - Fork 0
/
ibb.co.js
51 lines (45 loc) · 1.15 KB
/
ibb.co.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// ==UserScript==
// @include https://ibb.co/*
// ==/UserScript==
opera.addEventListener('BeforeExternalScript', function(js) {
// opera.postError(js.element)
js.preventDefault()
}, false)
opera.addEventListener('BeforeScript', function(js) {
// opera.postError(js.element)
js.preventDefault()
}, false)
!(function(global) {
var waitCommon = function(fn) {
if(global.Bga) {
fn()
}
else {
setTimeout(function() {
waitCommon(fn)
}, 0)
}
}
waitCommon(function() {
with(Bga) {
setProtoExpando()
document.documentElement.removeInlineEvents()
var log = 1 ? logRaw : logNull
opera.postError("here")
onDOMReady(function() {
//# direct image url
imgUrl = null
document.head.getElementsByTagName("meta").each(function(meta) {
if(meta.getAttribute("property") == "og:image") {
imgUrl = meta.getAttribute("content")
}
})
if(imgUrl != null) {
location.replace(imgUrl)
}
else {
}
})
}
})
})(this)