Skip to content

Commit

Permalink
Apply changes && Disable SRI
Browse files Browse the repository at this point in the history
  • Loading branch information
hifocus committed Dec 21, 2018
1 parent 770de7b commit 3e009d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion elements/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ if (/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
// UserAgent Verify Part Ends

// Removal of useless elements when in wechat and mobile qq
if (/(MicroMessenger|QQ|Alipay)/i.test(navigator.userAgent)) {
if (
/(MicroMessenger|QQ|Alipay)/i.test(navigator.userAgent) &&
!/(QQBrowser)/i.test(navigator.userAgent)
) {
var title = "";
var subtitle = "";
document.getElementById("h").removeChild(document.getElementById("i")); // remove profile photo
Expand Down
2 changes: 1 addition & 1 deletion elements/function.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions merger.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ <h2 id="name"></h2>

<!-- Footer Scripts --> <!-- Please do not swap orders -->
<script src="https://cdn.jsdelivr.net/combine/npm/[email protected],gh/lrsjng/[email protected]/dist/jquery-qrcode.min.js"></script>
<!-- <script src="elements/function.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/gh/hifocus/merger@0.11/elements/function.min.js" integrity="sha384-nnDA/MsQKHKD/WXdG7wFUj0XCreEbFwpWsOQfxqHGKRtKgLZBuJ1WD02zK5gtLbT" crossorigin="anonymous"></script> <script src="https://at.alicdn.com/t/font_974919_xgtacm93vxp.js"></script>
<!-- <script src="elements/function.original.js"></script> -->
<script src="https://cdn.jsdelivr.net/gh/hifocus/merger@0.12/elements/function.min.js"></script> <!-- SRI disabled due to development reason. Enable manually at https://srihash.org -->

</body>

Expand Down

0 comments on commit 3e009d0

Please sign in to comment.