{"id":2734,"date":"2021-07-15T04:08:44","date_gmt":"2021-07-15T03:08:44","guid":{"rendered":"https:\/\/www.nathankowald.com\/blog\/?p=2734"},"modified":"2022-11-18T14:41:53","modified_gmt":"2022-11-18T04:11:53","slug":"wordpress-bookmarklets","status":"publish","type":"post","link":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/","title":{"rendered":"WordPress Bookmarklets"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">Here&#8217;s some handy <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bookmarklet\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">bookmarklets<\/a> I use while building WordPress websites.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Edit the current page or post<\/h2>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(\"page-id-\")||e.includes(\"postid-\")})),o=e.length?e[0].replace(\/page-id-|postid-\/,\"\"):0;if(!o)return void alert(\"No WordPress post found\");let t=document.querySelector('link[rel=\"https:\/\/api.w.org\/\"]');t=t&amp;&amp;t.href?t.href.replace(\"\/wp-json\/\",\"\"):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&amp;post=${o}`}();<\/code><\/pre>\r\n\r\n<p><a href=\"https:\/\/gist.github.com\/n8kowald\/970e9614d374a9bca4384ffe765c8515\" target=\"_blank\" rel=\"noopener nofollow\">View unminified version<\/a>.<\/p>\r\n\r\n<p class=\"wp-block-paragraph\">This next one is a modified <a href=\"https:\/\/nattaylor.com\/blog\/2019\/bookmarklet-edit-current-wordpress-page\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Nat Taylor&#8217;s bookmarklet<\/a>. It&#8217;s modified to skip visiting the login page if you&#8217;re already logged in. WP will send you to the login page if you&#8217;re not logged in.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This is handy when the WordPress admin bar is hidden.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Go to WP admin \/ login page<\/h2>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>javascript:window.location.href = `${window.location.protocol}\/\/${window.location.hostname}\/wp-admin`;<\/code><\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Go to the Site Health admin page<\/h2>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>javascript:window.location.href = `${window.location.protocol}\/\/${window.location.hostname}\/wp-admin\/site-health.php?tab=debug`;<\/code><\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">How to use<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add a new bookmark in your browser, paste the JavaScript code into the URL field and give it a meaningful name.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/edit-bookmarklet.png\"><img loading=\"lazy\" decoding=\"async\" width=\"997\" height=\"1024\" class=\"wp-image-2737\" src=\"https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/edit-bookmarklet-997x1024.png\" alt=\"\" srcset=\"https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/edit-bookmarklet-997x1024.png 997w, https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/edit-bookmarklet-292x300.png 292w, https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/edit-bookmarklet-768x789.png 768w, https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/edit-bookmarklet-900x924.png 900w, https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/edit-bookmarklet.png 1030w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a>\r\n<figcaption>I name mine wp-E (WordPress Edit) and wp-L to save space on my bookmarks bar<\/figcaption>\r\n<\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Have a nice bookmarklet you use for WordPress development? Share it below in the comments.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s some handy bookmarklets I use while building WordPress websites. Edit the current page or post View unminified version. This next one is a modified Nat Taylor&#8217;s bookmarklet. It&#8217;s modified to skip visiting the login page if you&#8217;re already logged in. WP will send you to the login page if you&#8217;re not logged in. This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2738,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21,14,7,33],"tags":[],"class_list":["post-2734","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bookmarklets","category-useful-information","category-web-development","category-wordpress"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Here&#039;s some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(&quot;page-id-&quot;)||e.includes(&quot;postid-&quot;)})),o=e.length?e[0].replace(\/page-id-|postid-\/,&quot;&quot;):0;if(!o)return void alert(&quot;No WordPress post found&quot;);let t=document.querySelector(&#039;link[rel=&quot;https:\/\/api.w.org\/&quot;]&#039;);t=t&amp;&amp;t.href?t.href.replace(&quot;\/wp-json\/&quot;,&quot;&quot;):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&amp;post=${o}`}(); View unminified version. This next one is a modified Nat Taylor&#039;s bookmarklet. It&#039;s modified to skip visiting the login page if you&#039;re already logged in. WP will send you to\" \/>\n\t<meta name=\"robots\" content=\"noarchive, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Nathan Kowald\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Nathan&#039;s Blog | Web development and useful information\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"WordPress Bookmarklets \u2014 Nathan&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Here&#039;s some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(&quot;page-id-&quot;)||e.includes(&quot;postid-&quot;)})),o=e.length?e[0].replace(\/page-id-|postid-\/,&quot;&quot;):0;if(!o)return void alert(&quot;No WordPress post found&quot;);let t=document.querySelector(&#039;link[rel=&quot;https:\/\/api.w.org\/&quot;]&#039;);t=t&amp;&amp;t.href?t.href.replace(&quot;\/wp-json\/&quot;,&quot;&quot;):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&amp;post=${o}`}(); View unminified version. This next one is a modified Nat Taylor&#039;s bookmarklet. It&#039;s modified to skip visiting the login page if you&#039;re already logged in. WP will send you to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-07-15T03:08:44+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-11-18T04:11:53+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"WordPress Bookmarklets \u2014 Nathan&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Here&#039;s some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(&quot;page-id-&quot;)||e.includes(&quot;postid-&quot;)})),o=e.length?e[0].replace(\/page-id-|postid-\/,&quot;&quot;):0;if(!o)return void alert(&quot;No WordPress post found&quot;);let t=document.querySelector(&#039;link[rel=&quot;https:\/\/api.w.org\/&quot;]&#039;);t=t&amp;&amp;t.href?t.href.replace(&quot;\/wp-json\/&quot;,&quot;&quot;):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&amp;post=${o}`}(); View unminified version. This next one is a modified Nat Taylor&#039;s bookmarklet. It&#039;s modified to skip visiting the login page if you&#039;re already logged in. WP will send you to\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#article\",\"name\":\"WordPress Bookmarklets \\u2014 Nathan's Blog\",\"headline\":\"WordPress Bookmarklets\",\"author\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/wordpress-bookmarklet-scaled.jpg\",\"width\":2560,\"height\":1707},\"datePublished\":\"2021-07-15T04:08:44+09:30\",\"dateModified\":\"2022-11-18T14:41:53+10:30\",\"inLanguage\":\"en-US\",\"commentCount\":5,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#webpage\"},\"articleSection\":\"Bookmarklets, Useful Information, Web Development, WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"name\":\"Web Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/bookmarklets\\\/#listItem\",\"name\":\"Bookmarklets\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/bookmarklets\\\/#listItem\",\"position\":3,\"name\":\"Bookmarklets\",\"item\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/bookmarklets\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#listItem\",\"name\":\"WordPress Bookmarklets\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/#listItem\",\"name\":\"Web Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#listItem\",\"position\":4,\"name\":\"WordPress Bookmarklets\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/category\\\/web-development\\\/bookmarklets\\\/#listItem\",\"name\":\"Bookmarklets\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#person\",\"name\":\"Nathan Kowald\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg\",\"width\":96,\"height\":96,\"caption\":\"Nathan Kowald\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/\",\"name\":\"Nathan Kowald\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg\",\"width\":96,\"height\":96,\"caption\":\"Nathan Kowald\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#webpage\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/\",\"name\":\"WordPress Bookmarklets \\u2014 Nathan's Blog\",\"description\":\"Here's some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(\\\"page-id-\\\")||e.includes(\\\"postid-\\\")})),o=e.length?e[0].replace(\\\/page-id-|postid-\\\/,\\\"\\\"):0;if(!o)return void alert(\\\"No WordPress post found\\\");let t=document.querySelector('link[rel=\\\"https:\\\/\\\/api.w.org\\\/\\\"]');t=t&&t.href?t.href.replace(\\\"\\\/wp-json\\\/\\\",\\\"\\\"):document.location.origin,window.location.href=`${t}\\\/wp-admin\\\/post.php?action=edit&post=${o}`}(); View unminified version. This next one is a modified Nat Taylor's bookmarklet. It's modified to skip visiting the login page if you're already logged in. WP will send you to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/author\\\/ozymandias\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/wordpress-bookmarklet-scaled.jpg\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#mainImage\",\"width\":2560,\"height\":1707},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/2021\\\/07\\\/wordpress-bookmarklets\\\/#mainImage\"},\"datePublished\":\"2021-07-15T04:08:44+09:30\",\"dateModified\":\"2022-11-18T14:41:53+10:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/\",\"name\":\"Nathan's Blog\",\"description\":\"Web development and useful information\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.nathankowald.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"WordPress Bookmarklets \u2014 Nathan's Blog","description":"Here's some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(\"page-id-\")||e.includes(\"postid-\")})),o=e.length?e[0].replace(\/page-id-|postid-\/,\"\"):0;if(!o)return void alert(\"No WordPress post found\");let t=document.querySelector('link[rel=\"https:\/\/api.w.org\/\"]');t=t&&t.href?t.href.replace(\"\/wp-json\/\",\"\"):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&post=${o}`}(); View unminified version. This next one is a modified Nat Taylor's bookmarklet. It's modified to skip visiting the login page if you're already logged in. WP will send you to","canonical_url":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/","robots":"noarchive, max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#article","name":"WordPress Bookmarklets \u2014 Nathan's Blog","headline":"WordPress Bookmarklets","author":{"@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author"},"publisher":{"@id":"https:\/\/www.nathankowald.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/wordpress-bookmarklet-scaled.jpg","width":2560,"height":1707},"datePublished":"2021-07-15T04:08:44+09:30","dateModified":"2022-11-18T14:41:53+10:30","inLanguage":"en-US","commentCount":5,"mainEntityOfPage":{"@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#webpage"},"isPartOf":{"@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#webpage"},"articleSection":"Bookmarklets, Useful Information, Web Development, WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.nathankowald.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/#listItem","name":"Web Development"}},{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/#listItem","position":2,"name":"Web Development","item":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/bookmarklets\/#listItem","name":"Bookmarklets"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/bookmarklets\/#listItem","position":3,"name":"Bookmarklets","item":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/bookmarklets\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#listItem","name":"WordPress Bookmarklets"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/#listItem","name":"Web Development"}},{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#listItem","position":4,"name":"WordPress Bookmarklets","previousItem":{"@type":"ListItem","@id":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/bookmarklets\/#listItem","name":"Bookmarklets"}}]},{"@type":"Person","@id":"https:\/\/www.nathankowald.com\/blog\/#person","name":"Nathan Kowald","image":{"@type":"ImageObject","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg","width":96,"height":96,"caption":"Nathan Kowald"}},{"@type":"Person","@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author","url":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/","name":"Nathan Kowald","image":{"@type":"ImageObject","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/854acd146177108a75d95bc5fe67d244ccd1cd444eb62abe806923d3113f4319?s=96&d=mm&r=pg","width":96,"height":96,"caption":"Nathan Kowald"}},{"@type":"WebPage","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#webpage","url":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/","name":"WordPress Bookmarklets \u2014 Nathan's Blog","description":"Here's some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(\"page-id-\")||e.includes(\"postid-\")})),o=e.length?e[0].replace(\/page-id-|postid-\/,\"\"):0;if(!o)return void alert(\"No WordPress post found\");let t=document.querySelector('link[rel=\"https:\/\/api.w.org\/\"]');t=t&&t.href?t.href.replace(\"\/wp-json\/\",\"\"):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&post=${o}`}(); View unminified version. This next one is a modified Nat Taylor's bookmarklet. It's modified to skip visiting the login page if you're already logged in. WP will send you to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.nathankowald.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#breadcrumblist"},"author":{"@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author"},"creator":{"@id":"https:\/\/www.nathankowald.com\/blog\/author\/ozymandias\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.nathankowald.com\/blog\/wp-content\/uploads\/2021\/07\/wordpress-bookmarklet-scaled.jpg","@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#mainImage","width":2560,"height":1707},"primaryImageOfPage":{"@id":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/#mainImage"},"datePublished":"2021-07-15T04:08:44+09:30","dateModified":"2022-11-18T14:41:53+10:30"},{"@type":"WebSite","@id":"https:\/\/www.nathankowald.com\/blog\/#website","url":"https:\/\/www.nathankowald.com\/blog\/","name":"Nathan's Blog","description":"Web development and useful information","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.nathankowald.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Nathan's Blog | Web development and useful information","og:type":"article","og:title":"WordPress Bookmarklets \u2014 Nathan's Blog","og:description":"Here's some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(&quot;page-id-&quot;)||e.includes(&quot;postid-&quot;)})),o=e.length?e[0].replace(\/page-id-|postid-\/,&quot;&quot;):0;if(!o)return void alert(&quot;No WordPress post found&quot;);let t=document.querySelector('link[rel=&quot;https:\/\/api.w.org\/&quot;]');t=t&amp;&amp;t.href?t.href.replace(&quot;\/wp-json\/&quot;,&quot;&quot;):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&amp;post=${o}`}(); View unminified version. This next one is a modified Nat Taylor's bookmarklet. It's modified to skip visiting the login page if you're already logged in. WP will send you to","og:url":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/","article:published_time":"2021-07-15T03:08:44+00:00","article:modified_time":"2022-11-18T04:11:53+00:00","twitter:card":"summary","twitter:title":"WordPress Bookmarklets \u2014 Nathan's Blog","twitter:description":"Here's some handy bookmarklets I use while building WordPress websites. Edit the current page or post javascript:!function(){const e=Array.from(document.body.classList).filter((function(e){return e.includes(&quot;page-id-&quot;)||e.includes(&quot;postid-&quot;)})),o=e.length?e[0].replace(\/page-id-|postid-\/,&quot;&quot;):0;if(!o)return void alert(&quot;No WordPress post found&quot;);let t=document.querySelector('link[rel=&quot;https:\/\/api.w.org\/&quot;]');t=t&amp;&amp;t.href?t.href.replace(&quot;\/wp-json\/&quot;,&quot;&quot;):document.location.origin,window.location.href=`${t}\/wp-admin\/post.php?action=edit&amp;post=${o}`}(); View unminified version. This next one is a modified Nat Taylor's bookmarklet. It's modified to skip visiting the login page if you're already logged in. WP will send you to"},"aioseo_meta_data":{"post_id":"2734","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-07-15 02:45:02","updated":"2025-09-13 06:16:03","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathankowald.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/\" title=\"Web Development\">Web Development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/bookmarklets\/\" title=\"Bookmarklets\">Bookmarklets<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWordPress Bookmarklets\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.nathankowald.com\/blog"},{"label":"Web Development","link":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/"},{"label":"Bookmarklets","link":"https:\/\/www.nathankowald.com\/blog\/category\/web-development\/bookmarklets\/"},{"label":"WordPress Bookmarklets","link":"https:\/\/www.nathankowald.com\/blog\/2021\/07\/wordpress-bookmarklets\/"}],"_links":{"self":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts\/2734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/comments?post=2734"}],"version-history":[{"count":12,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts\/2734\/revisions"}],"predecessor-version":[{"id":2867,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/posts\/2734\/revisions\/2867"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/media\/2738"}],"wp:attachment":[{"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/media?parent=2734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/categories?post=2734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nathankowald.com\/blog\/wp-json\/wp\/v2\/tags?post=2734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}