mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 23:37:59 +01:00
11 lines
471 B
JavaScript
11 lines
471 B
JavaScript
|
|
const win = Cc["@mozilla.org/embedcomp/window-watcher;1"].getService(Ci.nsIWindowWatcher).activeWindow;
|
|
const liberator = win.liberator;
|
|
|
|
let page = liberator.findHelp(decodeURIComponent(document.location.search.substr(1)));
|
|
let url = page ? "chrome://liberator/locale/" + page : content.history.previous;
|
|
|
|
win.getBrowser().loadURIWithFlags(url, Components.interfaces.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, null, null, null);
|
|
|
|
// vim: set fdm=marker sw=4 ts=4 et:
|