Squiz Matrix Remap Manager "Never Delete" Bookmarklet
Mon, Jun. 13, 2011Everyone has wanted a way to remove all checkmarks in the Remaps Managers "Never Deletion" column, so, I wrote a quick script that adds a checkbox for you, which, when clicked adds/removes checks to all the checkboxes in the Never Delete column.
Here is the code that you need, just add it as the Address/URL of your bookmark:
javascript:(function(){var doc=top.sq_main.document;var mainDiv=doc.getElementsByClassName('sq-backend-table-header');for(var i=0;i<mainDiv.length;i++){if(mainDiv[i].innerHTML.replace(/^\s*|\s*$/g,' ')=='Never Delete'){mainDiv[i].innerHTML='<label for="remap_manager_19_never_delete_select_all">Never Delete</label><input type="checkbox" class="sq-form-field" id="remap_manager_19_never_delete_select_all" onclick="check_all(document.main_form, \'remap_manager_19_never_delete_remap\', this.checked); " value="1" name="remap_manager_19_never_delete_select_all">';}}})()
Drag this bookmarlet to your bookmarks bar
If the asset id of your Remap Manager is something other than 19, you must replace 19 with your asset id. Also, this will not work in Internet Explorer.
Comments