Blog

Squiz Matrix Remap Manager "Never Delete" Bookmarklet

Mon, Jun. 13, 2011

Everyone 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.

Nicholas Hubbard
Owner

Comments

Robin
Jul 27, 2011
Nic I put your code in bookmark of FF, after i click nothing happens.
Nicholas Hubbard
Jul 27, 2011
Robin, I just tested it in Firefox 5.0 and it worked perfectly. Can you try just putting the code into the URL bar and hit enter to see if that works for you?
Robin
Jul 27, 2011
Nic the code works by pasting into URL bar and hitting enter but not from the bookmark. I am using FF5.0 in Win7.
Nicholas Hubbard
Jul 28, 2011
I think that there must be an issue with how the bookmark is created then. If it works in the URL bar then you might need to check to see if FF changes the code once you add it as a bookmark. Also, I just added a bookmarklet link that you can use to drag onto your bookmarks bar. Hope that helps.
Robin
Jul 28, 2011
You are a star Nic! The bookmark works which is created by 'drag n drop'.
Nicholas Hubbard
Jul 28, 2011
Wonderful! Glad it is working for you. :)

Add Comment