Board Thread:General Coding Help/@comment-9605025-20180428232938/@comment-27958705-20180430085241

Andrewds1021 #9 Is

if (edit_buttons == undefined || ...) essentially the same? nope. but it will serve ur purpose too. note: follow editor notices and use === (strict equality) to check against undefined. also, every red\yellow mark in ur code is subject to fix.

u can use $('.page-header__contribution-buttons a[href$="&flow=create-page-create-button"]').length > 0 to find create button or $('#ca-edit').text.trim === "Create"// ur method