{"id":143,"date":"2007-01-18T20:55:00","date_gmt":"2007-01-18T12:55:00","guid":{"rendered":"http:\/\/behindgfw.com\/archives\/2007\/01\/googlemaps-hack.html"},"modified":"2016-05-03T20:49:32","modified_gmt":"2016-05-03T12:49:32","slug":"googlemaps-hack","status":"publish","type":"post","link":"https:\/\/www.behindgfw.com\/archives\/2007\/01\/googlemaps-hack.html","title":{"rendered":"GoogleMAPs Hack"},"content":{"rendered":"<p>\u95ee\u9898\u7684\u63d0\u51fa\uff1a\u5728google map api\u4e0b\u5199\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u5728\u5730\u56fe\u7684\u6700\u4e0b\u4f1a\u663e\u793agoogle log\u548cTerms of Use,\u4f46\u662f\u6709\u4e00\u4e2a\u95ee\u9898\u5982\u679c\u4f60\u70b9\u51fbgoogle log\u6216\u8005Terms of Use\uff0c\u5c06\u4f1a\u8df3\u51fa\u4f60\u7684\u9875\u9762\uff0c\u6253\u65ad\u7a0b\u5e8f\u663e\u793a\u3002\u5982\u4f55\u8ba9\u94fe\u63a5\u65b0\u5f00\u4e00\u9875\u9762\u663e\u793a\u5462\uff1f<\/p>\n<p>Terms of Use\u6bd4\u8f83\u597d\u529e\uff1a<br \/>\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u5982\u4e0b\u4ee3\u7801\u67e5\u627e\u66ff\u4ee3<\/p>\n<blockquote><p>var ANode = document.getElementsByTagName(&#8220;A&#8221;);<br \/>for (var i = 0; i < ANode.length; i++) {<br \/>if (ANode[i].innerHTML = &#8220;Terms of Use&#8221;) {<br \/>ANode[i].target=&#8221;_top&#8221;;<br \/>};};<\/p>\n<\/blockquote>\n<p>\u4f46\u662flogo\u56fe\u8c61\u5bf9\u5e94\u7684\u94fe\u63a5\u5c31\u6bd4\u8f83\u9ebb\u70e6\u4e86,logo\u56fe\u8c61\u5728&#8221;DOM&#8221;\u91cc\u663e\u793a\u4e3a&#8221;IMG&#8221;\u6807\u7b7e\u800c&#8221;A&#8221;\u6807\u7b7e\u88abgoogle\u6545\u610f\u9690\u85cf\u4e86\uff0c\u4f60\u70b9\u51fb\u7684\u65f6\u5019\u4f1a\u5c06\u4f60\u5e26\u5230google maps\u81ea\u5df1\u7684\u7f51\u7ad9\u4e0a\uff0c\u663e\u793a\u4f60\u521a\u624d\u6307\u5b9a\u7684\u533a\u57df\u3002\u5982\u4f55\u4fee\u6539target\u8fd8\u5f97\u5e9f\u70b9\u5927\u8111\u3002\u65e0\u5de7\u4e0d\u6210\u4e66\uff0c\u665a\u4e0a\u5728\u8c03\u8bd5\u7684\u65f6\u5019\uff0c\u7a81\u7136\u53d1\u73b0logo\u88ab\u66ff\u6362\u4e3a\u6587\u5b57\u4e86\uff0c\u800c\u4e0b\u5348\u8fd8\u663e\u793a\u6b63\u5e38\uff0c\u671f\u95f4\u5e76\u672a\u4fee\u6539\u4ee3\u7801\u3002\u91cd\u65b0\u56de\u5230\u539f\u6765\u7684\u5730\u65b9\u68c0\u67e5\uff0c\u624d\u77e5\u9053\u539f\u6765\u665a\u4e0agoogle\u5347\u7ea7api\u4e86\uff0clogo\u94fe\u63a5\u5bf9\u5e94\u7684&#8221;A&#8221;\u6807\u7b7e\u4e0d\u518d\u88ab\u9690\u85cf\u4e86\uff0chaha,<a target=\"_blank\" href=\"http:\/\/groups.google.com\/group\/Google-Maps-API\/browse_thread\/thread\/ae6739210dd20bfa\">\u987a\u5e94\u6c11\u610f<\/a>\u554a\uff01\u90a3\u4e0b\u9762\u5c31\u7b80\u5355\u4e86\uff0c\u4f60\u53ef\u4ee5\u5728\u4e0b\u9762\u6d4b\u8bd5\u5730\u56fe,\u94fe\u63a5\u4f1a\u5728\u65b0\u7a97\u53e3\u6253\u5f00\u3002<\/p>\n<blockquote><p>var ANode = document.getElementsByTagName(&#8220;A&#8221;);<br \/>for (var i = 0; i < ANode.length; i++) {<br \/>ANode[i].target=&#8221;_blank&#8221;;} ;<br \/>map.openInfoWindow(map.getCenter(),document.createTextNode(&#8220;Tag(&#8216;A&#8217;).length=&#8221;+ANode.length));<br \/>};<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/behindgfw.googlepages.com\/MapTest.html\" target=\"map\">GoogleMAPs TEST<\/a><br \/><iframe loading=\"lazy\" name=\"map\" src=\"http:\/\/behindgfw.googlepages.com\/MapTest.html\" framespacing=\"0\" marginheight=\"0\" marginwidth=\"0\" align=\"middle\" frameborder=\"0\" height=\"310\" scrolling=\"no\" width=\"410\"><\/iframe><\/p>\n<p><b>update:<\/b><br \/>\u4eca\u5929\u4e0b\u5348\u7f3a\u7701\u7248\u672c\u53c8\u9000\u56de\u5230v2.70a\u4e86\uff0c\u672c\u6587\u4ee5\u4e0a\u7279\u6027\u5728v2.71\u4e2d\u53ef\u4ee5\u83b7\u5f97\u652f\u6301\u3002<br \/>\u73b0\u5728v2.73\u5df2\u7ecf\u5efa\u7acb\u800cv2.70a\u8fd8\u662f\u7f3a\u7701\u7684\u7248\u672c\uff0c\u6240\u4ee5\u73b0\u5728\u7684api\u4e00\u5171\u6709\u56db\u4e2a\u7248\u672c\uff0c\u800c\u4e0d\u662f\u901a\u5e38\u7684\u4e09\u4e2a\u3002<br \/>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u83b7\u5f97\u65b0\u7248\u672capi\uff1a<br \/>        &#038;v=2   gives   v2.70a   &#8220;default&#8221;<br \/>        &#038;v=2.x gives   v2.71    &#8220;current&#8221;<br \/>                           v2.72     next<br \/>                           v2.73     latest<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u7684\u63d0\u51fa\uff1a\u5728google map api\u4e0b\u5199\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u5728\u5730\u56fe\u7684\u6700\u4e0b\u4f1a\u663e\u793agoogle log\u548cTerms  [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,10,7],"tags":[69,51,71],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-google","category-hack","category-webdev","tag-google","tag-googlemaps","tag-hack"],"_links":{"self":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":1,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":519,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts\/143\/revisions\/519"}],"wp:attachment":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}