Skip to content

Commit 0041922

Browse files
committed
pdv.3
1 parent 7380b08 commit 0041922

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

gmap.html

100644100755
+27-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
2-
32
<html>
43
<head>
4+
<meta name="referrer" content="no-referrer">
55
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
66
<style type="text/css">
77
html { height: 100% }
@@ -32,10 +32,34 @@
3232
color:#333;
3333
}
3434
</style>
35-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js">
35+
<script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.min.js">
3636
</script>
3737
<script type="text/javascript"
38-
src="https://maps.google.cn/maps/api/js?sensor=true">
38+
src="https://ditu.google.cn/maps/api/js">
39+
</script>
40+
<script>
41+
var target = document.head;
42+
var observer = new MutationObserver(function(mutations) {
43+
for (var i = 0; mutations[i]; ++i) { // notify when script to hack is added in HTML head
44+
if (mutations[i].addedNodes[0].nodeName == "SCRIPT" && mutations[i].addedNodes[0].src.match(/\/AuthenticationService.Authenticate?/g)) {
45+
var str = mutations[i].addedNodes[0].src.match(/[?&]callback=.*[&$]/g);
46+
if (str) {
47+
if (str[0][str[0].length - 1] == '&') {
48+
str = str[0].substring(10, str[0].length - 1);
49+
} else {
50+
str = str[0].substring(10);
51+
}
52+
var split = str.split(".");
53+
var object = split[0];
54+
var method = split[1];
55+
window[object][method] = null;
56+
}
57+
observer.disconnect();
58+
}
59+
}
60+
});
61+
var config = { attributes: true, childList: true, characterData: true }
62+
observer.observe(target, config);
3963
</script>
4064
<script type="text/javascript">
4165
Map=null;

0 commit comments

Comments
 (0)