When a new version of the Salesforce package is generated, it is often necessary to check which new components will be introduced into the packages, This in the case of a number of components will be a little dazzling, in order to facilitate, I want to use JS to the package has been introduced to filter out, so there is the following JS fragment, recorded, easy to use in the future!
1. First, first, the introduction of jquery, because the pure JS code is not how to write, or jquery convenient
if (typeof jQuery = = ' undefined ') {
&nbs P var e = document.createelement (' script ');
E.SRC = '//code.jquery.com/jquery-1.11.2.min.js ';
E.type = ' text/javascript ';
document.getElementsByTagName ("Head") [0].appendchild (e);
}
2. Then get the list of components on the page and hide the lines of the components that have been introduced
var j$ = jquery.noconflict ();
var $compTbody = j$ (document.getElementById ("Viewallpackage:theform::p ACKAGECOMPONENTTABLE:TB"));
$compTbody. Find (' tr '). each (function () {
var $tr = j$ (this);
if ($tr. Find (' Td:eq (6) '). Text ()! = ") $tr. Hide ();
});
As Salesforce progresses, this code may fail, but it's just a matter of changing the JS code.
Salesforce Quick view of the components introduced into the package