-
Notifications
You must be signed in to change notification settings - Fork 0
/
hackaday.io.js
48 lines (42 loc) · 1.06 KB
/
hackaday.io.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
// ==UserScript==
// @name twitter
// @include https://hackaday.io/*
// @description
// ==/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) {
onDOMReady(function() {
setProtoExpando()
document.documentElement.removeInlineEvents()
var log = 1 ? logRaw : logNull
//# lazy imgs to real
document.getElementsByTagName("IMG").each(function(img) {
if(img.hasClass("lazy")) {
img.src = img.getAttribute("data-src")
}
else {
}
})
})
}
})
})(this)