1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 12:04:12 +01:00

Remove short-url special case for YouTube.

Link elements now appear to be updated properly when navigating the site.
This commit is contained in:
Doug Kearns
2014-06-24 20:11:01 +10:00
parent cde8cd6763
commit 93a57d2d1b

View File

@@ -2777,13 +2777,6 @@ Buffer.addPageInfoSection("s", "Security", function (verbose) {
}
});
// internal navigation doesn't currently update link[rel='shortlink']
Buffer.addURIShortener("youtube.com", (uri, doc) => {
let video = array.toObject(uri.query.split("&")
.map(p => p.split("="))).v;
return video ? util.newURI("http://youtu.be/" + video) : null;
});
// catch(e){ if (!e.stack) e = Error(e); dump(e.fileName+":"+e.lineNumber+": "+e+"\n" + e.stack); }
endModule();