Skip to content

Instantly share code, notes, and snippets.

@oskosk
Created June 7, 2018 22:46
Show Gist options
  • Save oskosk/35e0f3a9c4a369d99603c0be4c791e49 to your computer and use it in GitHub Desktop.
Save oskosk/35e0f3a9c4a369d99603c0be4c791e49 to your computer and use it in GitHub Desktop.
javascript:(function()%7Bvar qs %3D window.location.search %7C%7C "%3F"%3Bvar param %3D 'classic-editor'%3Bif (qs.length > 1) %7Bqs %3D qs %2B "%26"%3B%7Dqs %3D qs %2B param%3Bwindow.location.search %3D qs%7D)()
var qs = window.location.search || "?";
var param = 'classic-editor';
if (qs.length > 1) {
qs = qs + "&";
}
qs = qs + param;
window.location.search = qs;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment