Sign up
internetarchive
/
internetarchivebot
Public
a1ddafaedf
internetarchivebot​/​app​/​src​/​html​/​static​/​unrestrict-tabs.js
1 contributor
11 lines (10 sloc) 312 Bytes
$(window).on( 'click', 'a', function (event) {
// Capture the href from the selected link...
var link = this.href;
var host = window.location.protocol + '//' + window.location.host;
if (link.indexOf(host) !== -1) return true;
else {
window.open(link);
return false;
}
});
© 2021 GitHub, Inc.
Terms
Privacy
Security
Status
Docs
Contact GitHubPricingAPITrainingBlogAbout
CodeCodePull requestsPull requests2ActionsActionsProjectsProjectsWikiWikiSecuritySecurityInsightsInsights Code Pull requests Actions Projects Wiki Security Insights