You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need pages number in the printed document. One way to do it is to print with Headers and footers (an option to enable in the print dialog of Chrome and Firefox).
But this option also prints the URL (in this case, it is a popup with about:blank). I found a way to replace it with the hostname of the page from which the popup is called, but it doesn't work on Firefox (about:blank is not replaced by the hostname). This solution is not perfect, but it is better than about:blank for Chrome.
Here is a snippet that replaces about:blank with the hostname for chrome:
I need pages number in the printed document. One way to do it is to print with
Headers and footers
(an option to enable in the print dialog of Chrome and Firefox).But this option also prints the URL (in this case, it is a popup with
about:blank
). I found a way to replace it with the hostname of the page from which the popup is called, but it doesn't work on Firefox (about:blank
is not replaced by the hostname). This solution is not perfect, but it is better thanabout:blank
for Chrome.Here is a snippet that replaces
about:blank
with the hostname for chrome:Would you accept a PR for this, even if it only works on Chrome ?
The text was updated successfully, but these errors were encountered: