os0x (owner)

Fork Of

Revisions

gist: 215871 Download_button fork
public
Public Clone URL: git://gist.github.com/215871.git
Embed All Files: show embed
JavaScript #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function insertSITEINFO(callback,thisObject){
if (Set.DISABLE_IFRAME && window.parent !== window) return;
var src = (Set.SITEINFO_SERVER) ? Set.SITEINFO_SERVER + 'get?url=' + encodeURIComponent(location.href) : 'http://ss-o.net/json/wedataAutoPagerizeSITEINFO.js';
var sc = document.createElementNS(HTML_NAMESPACE, 'script');
sc.type = 'text/javascript';
window.AutoPagerizeCallbackSiteinfo = function(res){
callback.call(thisObject,res);
window.AutoPagerizeCallbackSiteinfo = null;
sc.parentNode.removeChild(sc);
var ev = document.createEvent('Event');
ev.initEvent('GM_AutoPagerizeSiteinfoLoaded', true, false);
document.dispatchEvent(ev);
};
sc.src = src;
function insert(){(document.body || document.documentElement).appendChild(sc);}
if (window.opera && document.readyState == 'interactive') document.addEventListener('DOMContentLoaded',insert,false);
else insert();
}
 
if (window.opera && document.readyState == 'interactive') {
document.addEventListener('GM_AutoPagerizeSiteinfoLoaded',autopager,false);
document.addEventListener('DOMContentLoaded',autopager,false);
} else autopager();