mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 11:15:47 +01:00
Fix 'yankshort' for YouTube.
Only full page requests currently appear to update link[rel='shortlink']. Fixes issue #1074.
This commit is contained in:
@@ -2707,6 +2707,12 @@ Buffer.addPageInfoSection("s", "Security", function (verbose) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// internal navigation doesn't currently update link[rel='shortlink']
|
||||||
|
Buffer.addURIShortener("youtube.com", (uri, doc) =>
|
||||||
|
util.newURI("http://youtu.be/" +
|
||||||
|
array.toObject(uri.query.split("&")
|
||||||
|
.map(p => p.split("="))).v));
|
||||||
|
|
||||||
// catch(e){ if (!e.stack) e = Error(e); dump(e.fileName+":"+e.lineNumber+": "+e+"\n" + e.stack); }
|
// catch(e){ if (!e.stack) e = Error(e); dump(e.fileName+":"+e.lineNumber+": "+e+"\n" + e.stack); }
|
||||||
|
|
||||||
endModule();
|
endModule();
|
||||||
|
|||||||
Reference in New Issue
Block a user