1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 14:27:59 +01:00

Complete :sanitize and private mode overhaul.

--HG--
rename : common/content/sanitizer.js => common/modules/sanitizer.jsm
This commit is contained in:
Kris Maglione
2010-09-17 06:15:13 -04:00
parent a5213c3760
commit 152e6d5a1f
27 changed files with 1120 additions and 721 deletions

View File

@@ -1517,14 +1517,14 @@ const Buffer = Module("buffer", {
mappings.add(myModes, ["gP"],
"Open (put) a URL based on the current clipboard contents in a new buffer",
function () {
dactyl.open(util.readFromClipboard(),
dactyl.open(dactyl.clipboardRead(),
dactyl[options.get("activate").has("paste") ? "NEW_BACKGROUND_TAB" : "NEW_TAB"]);
});
mappings.add(myModes, ["p", "<MiddleMouse>"],
"Open (put) a URL based on the current clipboard contents in the current buffer",
function () {
let url = util.readFromClipboard();
let url = dactyl.clipboardRead();
dactyl.assert(url);
dactyl.open(url);
});
@@ -1532,7 +1532,7 @@ const Buffer = Module("buffer", {
mappings.add(myModes, ["P"],
"Open (put) a URL based on the current clipboard contents in a new buffer",
function () {
let url = util.readFromClipboard();
let url = dactyl.clipboardRead();
dactyl.assert(url);
dactyl.open(url, { from: "paste", where: dactyl.NEW_TAB });
});
@@ -1552,7 +1552,7 @@ const Buffer = Module("buffer", {
function () {
let sel = buffer.getCurrentWord();
dactyl.assert(sel);
util.copyToClipboard(sel, true);
dactyl.clipboardWrite(sel, true);
});
// zooming