Skip to content

Instantly share code, notes, and snippets.

王集鹄 zswang

Block or report user

Report or block zswang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
zswang / cloudSettings
Last active Sep 13, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
zswang / tag_class_count.js
Created Mar 15, 2018
Get the number of elements in the current page
View tag_class_count.js
.map(el => el.nodeName)
.filter((item, index, arr) => arr[index - 1] !== item).length
var s = new Set();
[...document.querySelectorAll("*")].forEach(el => s.add(el.nodeName));
You can’t perform that action at this time.