Opera 9.10 WinXp won't print www.titantv.com digital TV schedules.
Opera prints only a few top lines. (anyone need scratch paper?)
MSIE 7 prints them just fine. (The "Print" button prints clean schedule.)
Mason C
Damn, I keep forgetting this; go to titantv and print a schedule and
get more scratch paper.
Mason C
Give this User JavaScript a try...
if (document.domain.match(/^(www\.)?titantv\.com$/)) {
document.addEventListener("load",
function(e) {
var inps = document.getElementsByTagName("input");
for (var i = 0, o; o = inps[i]; i++) {
if (o.type != "image") continue;
if (o.getAttribute("alternate") != "Print") continue;
o.onclick = "window.open(document.forms.Form1.__PrintUrl.value,'','');";
break;
}
}, 0);
}
HTH
--
http://www.opera.com/support/tutorials/userjs/using/#writingscripts
Follow-up...
I forgot to add: after installing the UserJS file, reload the page, then
click the blue [Print] button in the upper-right corner of the Titan.tv page
(while you're viewing your TV schedule).
Sorry, this UserJS doesn't muck with the printer stylesheet -- which might
fix the Opera 'print' and 'print preview' features.
By gosh and by darn. It worked. I had to Google for instructions
at: http://www.opera.com/support/tutorials/userjs/using/#writingscripts
In brief, I needed this:
To enable user JavaScript, use Tools > Preferences > Advanced > Content >
JavaScript options, and select the directory where you will put your User
JavaScript files. Opera will load all files in the specified directory whose
names end with .js and will use them as User JavaScript files.
( I put the .js file with my Opera plugins.)
Thanks ever so much, Lee Harvey. It saves me from a nuisance.
Mason C
Oh, darn. I didn't test it rightly. I'm having a very *bad* day.
It did *not* work. I closed and reloaded Opera. I didn't work.
I get a little badly formatted print from the top of the page.
More scratch paper. thanks for trying -- does it work for you?
How can anyone have one day so bad? Blame it on the bug in
my new Word 2007 that killed a day.
The js offered by Lee Harvey DOES WORK. I just screwed up
my first try..
Thanks again, now I'll go away ----------far away ---
Mason C
It wants to reside in your opera/userjs folder.
--
Ed Jay (remove 'M' to respond by email)
Mason C reported:
Opera 9.10 WinXp won't print www.titantv.com digital TV schedules.
Opera prints only a few top lines, no schedule.
( MSIE 7 prints them just fine. )
Lee Harvey suggested:
Give this User JavaScript a try...
if (document.domain.match(/^(www\.)?titantv\.com$/)) {
document.addEventListener("load",
function(e) {
var inps = document.getElementsByTagName("input");
for (var i = 0, o; o = inps[i]; i++) {
if (o.type != "image") continue;
if (o.getAttribute("alternate") != "Print") continue;
o.onclick = "window.open(document.forms.Form1.__PrintUrl.value,'','');";
break;
}
}, 0);
}
After some blundering, MasonC reported:
It works! I had to Google for instructions at:
http://www.opera.com/support/tutorials/userjs/using/#writingscripts
"To enable user JavaScript, use Tools > Preferences > Advanced > Content >
JavaScript options, and select the directory where you will put your User
JavaScript files. Opera will load all files in the specified directory whose
names end with .js and will use them as User JavaScript files."
( I put the .js file with my Opera plugins directory.)
The script Lee Harvey gave us solved the problem for me.