mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:37:59 +01:00
12 lines
481 B
JavaScript
12 lines
481 B
JavaScript
|
|
const win = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
|
|
.getService(Components.interfaces.nsIWindowWatcher)
|
|
.activeWindow;
|
|
const liberator = win.liberator;
|
|
|
|
let page = liberator.findHelp(decodeURIComponent(document.location.search.substr(1)));
|
|
let url = "chrome://liberator/locale/" + page;
|
|
|
|
win.getBrowser().loadURIWithFlags(url, Components.interfaces.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, null, null, null);
|
|
|