myblogplus 第三期 如何更改你部落格的圖示,已實現 - mooling原創
阿新 • • 發佈:2020-09-03
三言兩語
部落格的logo可以凸顯你的blog的個性
不知道你有沒有覺得部落格園原始的那個小礦工不好看了呢
fromto這才是個人部落格的style!
為什麼要寫這篇文章
因為在部落格園的“找找看”中,如果你把第一頁的所有文章都看一遍,複製到 你部落格後臺的程式碼裡,你發現在最流行的chrome中,一點反應也沒有。。。
這篇文章不用jquery的加持,可以直接OK
上程式碼:
<script type="text/javascript"> document.getElementById("favicon").remove(); var linkObject = document.createElement('link'); linkObject.rel = "shortcut icon";linkObject.href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABZsSURBVHhe7Z0HXBPnG8dvJEBAEBUXDpa7VK0TpYi2bqlWRVCxatW6B2qttrRotVbrqlZFba1YdxWtow5wQRWlatW/dVABcSA4AGWTcXf/95I3civhOFYS+X74wPNcICTP773nfd5xF1SVdRWpovLA4M8qKom3SACCIJ+/eKVWExRFwUMmwNsiQPz91JadQtzbhVR3WRA4bhs8agK8FQK8TM/6OGjLw6eomlRoENXhyH8fPEqHj1U2b4UAs0N2JadmIVg+QmkQBAVHrlx/pHuo0rF8AeKu3t9/NB6mfZSOvklh4QIUFqpmfHkIQXHomx4WLkD43r//d/cZdEwSSxbgadrrWSEHocPmv8Tn0KpsLFmAlRuioMXDdEYCFitA5qucyOj70OFhOmMxixUgKvq/pGSDxT5BVglQnoDs/+2qU9ARgqwSoFzZc+gav/kP7NcRWrrBmGlggQKA/L5tTxx09Pj7vfNui9rQQRC1hoBWZWOBAkTHJvCb//zp3XC0ADoIoiFIaFU2FijAktXc7N/bt8l77zpDRwtRJUA5kZ6Ze/c+d5A1f0Y38D07V6n1TGYIoMXSBNi663LmqzzoaPHt4ga+oKOnoFANrcrGogTIyS1cuyUaOnpC5/aAFpOqkXB5sHHbBTH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unM/EcsYBgGs3H3Xt/yN06A9vUn0+I6Dn+/VORUb/tu9Keh5LnmJACRTVjB7WddZEH8+WZR/3N1iUAGoNYdd4LnQAJGljhZEqFQliKa6DpcEId5daQYM7Th3XrVbNojsylBMWJQCAOSMEEjWlJpDi7mdXBIZ083KbMaHHwD7vVtgGA4vqAwDM4Ri9KU1k9FG0m3fj0wemnj4wc1Df1hUWfYClCcAbjhUDjmFNXR3PgNDvn+3bpVlFhl6HpQnAKYSMgFKkHFEv+7L3nUuLunVtWvGh12HJKUgYlN5JiFFUb1+3yIPTgqdVxJU8RrC0TphbCLHBMRxEv3XL6tvWj2vVvGTJqpywtDNALsN9vLT3ctLfQegNOFngWhdfEdo9LirURKIPsLQzAJCdU9Cg+UQl6ojQO21JBOR6lOru1ThwaLvhAd2t2Df3qnQsUADA3fjHi1acPBF5CyEQ14Y1flgyeIDhjSGVi2UKoIOkb4UPqpvKKnBEYWl9ABOMxqSjD7BkAcyCKgEqFQT5P/d/ELUp/gY6AAAAAElFTkSuQmCC"; /*s1.ax1x.com/2020/07/26/a9XzKU.jpg*/ document.getElementsByTagName("head")[0].appendChild(linkObject); </script>
這就需要JavaScript的支援了,所有涉及“更改”的都要js
不行的話申請一下吧
填“適度美化部落格”
方法詳細
首先檢視你blog的原始碼,ctrl+u
找到是第12行定義了icon圖示
所以有了js第1行的
因為圖示的id是favicon,獲取並remove
var linkObject = document.createElement('link'); linkObject.rel = "shortcut icon"; linkObject.href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABZsSURBVHhe7Z0HXBPnG8dvJEBAEBUXDpa7VK0TpYi2bqlWRVCxatW6B2qttrRotVbrqlZFba1YdxWtow5wQRWlatW/dVABcSA4AGWTcXf/95I3civhOFYS+X74wPNcICTP773nfd5xF1SVdRWpovLA4M8qKom3SACCIJ+/eKVWExRFwU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].appendChild(linkObject);
接著createElement,新建了一個啥也沒有的<link/>元素
新增href屬性 就是你的圖示地址,初始的是也就是12行定義的
然後將這個元素新增到網頁中,
document.getElementsByTagName("head")[0].appendChild(linkObject);
就OK了,當然你希望載入快一點,所以最好變成不需要載入的檔案,這個網站https://www.base64-image.de/
可以在我的部落格首頁看往期好玩的myblogplus
下一期我要寫“不申請js許可權 使用js”