1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00

same with querySelector

This commit is contained in:
gorhill 2015-06-10 08:58:10 -04:00
parent c27b18d7d1
commit ff0ad30ba6

View File

@ -86,6 +86,10 @@ DOMListFactory.nodeFromId = function(id) {
return document.getElementById(id);
};
DOMListFactory.nodeFromSelector = function(selector) {
return document.querySelector(selector);
};
/******************************************************************************/
var addNodeToList = function(list, node) {