blob: 08ff42d324d283ba1aa42f7a8b39b42d8a467071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// uncompressed bookmarklet code
(function () {
function loadScript(url, callback) {
var script = document.createElement('script'),
head = document.getElementsByTagName('head')[0],
done = false;
script.type = 'text/javascript';
script.src = url;
script.onload = script.onreadystatechange = function() {
if ( !done && ( !this.readyState || this.readyState == 'loaded' || this.readyState == 'complete' ) ) {
done = true;
callback();
}
};
head.appendChild(script);
}
// dev = src/printliminator.js
// production = //css-tricks.github.io/The-Printliminator/printliminator.min.js
loadScript('{printliminator}', function() {
csstricksPrintliminator();
});
})();
|