favicon

Favicon disappears after preventing execution of a specific inline script tag by Tampemonkey

有些话、适合烂在心里 提交于 2020-12-15 05:45:14
问题 I use this code in Tampermonkey to prevent certain script tag from executing: https://stackoverflow.com/a/50024143/8849796 (function() { 'use strict'; window.stop(); const xhr = new XMLHttpRequest(); xhr.open('GET', window.location.href); xhr.onload = () => { var html = xhr.responseText .replace(/<script\b[\s\S]*?<\/script>/g, s => { // check if script tag should be replaced/deleted if (s.includes('window.location')) { return ''; } else { return s; } }); document.open(); document.write(html);

Chromium seems to display ico instead of svg favicon

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-12 18:10:02
问题 I've been tinkering with support for dark-mode by using a media query in my svg favicon. This is visible on my website. <link href="favicon.svg" rel="icon" type="image/svg+xml"> <link href="favicon.ico" rel="alternate icon" type="image/x-icon"> Comparison between dark and light mode with Firefox However, when using a Chromium based browser (Google Chrome version 84), it uses the favicon.ico. When I remove the ico completely, the browser does show the svg favicon, so I know it works and the

Chromium seems to display ico instead of svg favicon

大城市里の小女人 提交于 2020-12-12 18:07:55
问题 I've been tinkering with support for dark-mode by using a media query in my svg favicon. This is visible on my website. <link href="favicon.svg" rel="icon" type="image/svg+xml"> <link href="favicon.ico" rel="alternate icon" type="image/x-icon"> Comparison between dark and light mode with Firefox However, when using a Chromium based browser (Google Chrome version 84), it uses the favicon.ico. When I remove the ico completely, the browser does show the svg favicon, so I know it works and the