mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-24 14:51:25 +02: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:
@@ -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); }
|
// 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