Adopt SC's method

Adopt SC's polyfill (and it only works on SC's gecko)