PUPT: Make top level theme editor links go straight to HTML editor
By default, the top level (area nav) links in the theme editor link to that page's settings page. For a power user this adds an extra page load and extra click to get to the HTML editor.
If you have the TamperMonkey extension installed for chrome, add the following new script:
this will run on any admin theme pages and change all the links to point to the HTMLeditor
// ==UserScript==
// @name Make top level theme links go to HTML EDITOR INSTEAD OF SETTINGS!!!!!!!!!! AHHHHH!!!!
// @match */store/admin/themes/*
// @grant none
// ==/UserScript==
(function() {
$(".area-nav li:not(.active).has-subsections > a").each(function(){
$(this).attr("href", $(this).attr("href").replace(/settings/i, "htmleditor"));
});
})();
Please sign in to leave a comment.
Comments
0 comments