{"id":384,"date":"2023-12-08T17:19:59","date_gmt":"2023-12-08T09:19:59","guid":{"rendered":"https:\/\/blog.quantoyo.com\/?p=384"},"modified":"2023-12-08T17:19:59","modified_gmt":"2023-12-08T09:19:59","slug":"chrome-%e5%8b%95%e6%85%8b%e6%9b%b8%e7%b1%a4-%e5%9f%b7%e8%a1%8cjavascript","status":"publish","type":"post","link":"https:\/\/blog.quantoyo.com\/?p=384","title":{"rendered":"Chrome \u52d5\u614b\u66f8\u7c64-\u57f7\u884cJavascript"},"content":{"rendered":"\n<p>\u5982\u4f55\u5728 Chrome \u4e0a\u88fd\u4f5c\u53ef\u4ee5\u5c07javascript \u5beb\u9032\u53bb\u7684\u66f8\u7c64<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u4ee5\u4e0b\u662f\u500b\u7c21\u55ae\u7684\u7bc4\u4f8b\uff0c\u6703\u5c07\u76ee\u524d\u9801\u9762\u8f49\u5c0e\u5230\u6307\u5b9a\u65e5\u671f\u7684<\/p>\n\n\n\n<p><a href=\"https:\/\/rl.fx678.com\/date\/\">https:\/\/rl.fx678.com\/date\/<\/a>\u65e5\u671f.html<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728Chrome \u958b\u555f\u66f8\u7c64\u7ba1\u7406\u9801\u9762<\/li>\n\n\n\n<li>\u6309\u53f3\u9375>\u65b0\u589e\u66f8\u7c64>\u8f38\u5165\u540d\u7a31<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-1.png\" alt=\"\" class=\"wp-image-386\" width=\"143\" height=\"108\" srcset=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-1.png 334w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-1-300x226.png 300w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-1-150x113.png 150w\" sizes=\"auto, (max-width: 143px) 100vw, 143px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-2.png\" alt=\"\" class=\"wp-image-387\" width=\"471\" height=\"250\" srcset=\"https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-2.png 1048w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-2-300x159.png 300w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-2-150x80.png 150w, https:\/\/blog.quantoyo.com\/wp-content\/uploads\/2023\/12\/image-2-768x407.png 768w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u4e0b\u65b9\u7db2\u5740\u5217\u8f38\u5165\u4ee5\u4e0b\u5b57\u4e32<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-light-gray-background-color has-background has-small-font-size\"><code>javascript: ! function () {function getDate(){     let objectDate = new Date();       let day = objectDate.getDate();     if(day &lt; 10){         day = \"0\"+day;     }              let month = objectDate.getMonth();     month = month +1;           let year = objectDate.getFullYear();       return \"\"+year+month+day;      } window.location.href = \"https:\/\/rl.fx678.com\/date\/\"+getDate()+\".html\";}()<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5132\u5b58\u4e26\u95dc\u9589\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code has-light-gray-background-color has-background has-small-font-size\"><code>\u8a73\u7d30\u5167\u5bb9\u70ba\n\njavascript: ! \nfunction () {\n    function getDate(){     \n        let objectDate = new Date();       \n        let day = objectDate.getDate();     \n        if(day &lt; 10){         \n            day = \"0\"+day;     \n        }              \n        let month = objectDate.getMonth();     \n        month = month +1;           \n        let year = objectDate.getFullYear();       \n        return \"\"+year+month+day;      \n    } \n    window.location.href = \"https:\/\/rl.fx678.com\/date\/\"+getDate()+\".html\";\n}()\n\n\u958b\u59cb\u5148\u6307\u5b9a\u9019\u662f\u8981\u4f7f\u7528javascript \u57f7\u884c\u7684\u66f8\u7c64\uff0c\u4e26\u6307\u5b9a\u4e00\u500b\u6703\u76f4\u63a5\u57f7\u884c\u7684\u96b1\u51fd\u6578\u3002\n\u88cf\u9762\u6703\u5c07\u76ee\u524d\u7db2\u5740\u8f49\u63db\u6210\u5e36\u65e5\u671f\u7684\u7248\u672c\uff0c\u4e26\u6253\u958b\n<\/code><\/pre>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u5229\u7528\u6b64\u65b9\u6cd5\u8f09\u5165 jquery \u4f86\u65b9\u4fbf\u4f7f\u7528<\/p>\n\n\n\n<pre class=\"wp-block-code has-light-gray-background-color has-background has-small-font-size\"><code>javascript:\n(\n    function(e,s){\n        e.src=s;\n        e.onload=function(){\n            jQuery.noConflict();\n            $=jQuery;console.log('jQuery injected')\n        };\n        document.head.appendChild(e);\n    }\n)(\n    document.createElement('script'),'http:\/\/code.jquery.com\/jquery-latest.min.js'\n)\n\n\u5beb\u6cd5\u7a0d\u6709\u4e0d\u540c\uff0c\u4f46\u90fd\u53ef\u4ee5\u4f5c\u70ba\u66f8\u7c64\u4f7f\u7528\uff0c\u503c\u5f97\u6ce8\u610f\u7684\u662f\u5beb\u5165\u66f8\u7c64\u7db2\u5740\u5217\u7684\u90fd\u5fc5\u9808\u8b8a\u6210\u4e00\u884c\uff0c\u4e0d\u80fd\u6709\u63db\u884c\u7b26\u865f\n\nex. \n\njavascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();$=jQuery;console.log('jQuery injected')};document.head.appendChild(e);})(document.createElement('script'),'http:\/\/code.jquery.com\/jquery-latest.min.js')<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728 Chrome \u4e0a\u88fd\u4f5c\u53ef\u4ee5\u5c07javascript \u5beb\u9032\u53bb\u7684\u66f8\u7c64<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[61,59,46,60,63,62],"class_list":["post-384","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bookmark","tag-chrome","tag-javascript","tag-jquery","tag-63","tag-62"],"_links":{"self":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts\/384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=384"}],"version-history":[{"count":1,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts\/384\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=\/wp\/v2\/posts\/384\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.quantoyo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}