Jump to content

User:Chlod/Scripts/NewTabMMVDetails.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// New Tab MMV (Multimedia Viewer) Details
// Author: Chlod
// Version: 1.0.0-REL

// Opens the details page brought up by "More details" in the Multimedia Viewer into a new tab.

$(document).click((function (click_event) {
	if (click_event.target.classList.contains("mw-mmv-description-page-button")) {
		click_event.target.setAttribute("target", "_blank");
	}
}));