| MozTW 討論區 https://forum.moztw.org/ |
|
| 在書籤標題顯示即時天氣資料 https://forum.moztw.org/viewtopic.php?f=2&t=33175 |
第 1 頁 (共 1 頁) |
| 發表人: | shyangs [ 2011-08-08, 18:37 ] |
| 文章主題 : | 在書籤標題顯示即時天氣資料 |
即時天氣 簡介: 每隔 60 分鐘,從中央氣象局抓取目前天氣資料顯示於書籤標題。透過這個方式安裝的 XML 檔,只有幾 KB 大小可以用來替代 Forecastfox Weather 之類的天氣套件。 預覽圖: ![]() 安裝方法:
補充:
參考資料
附件: tw-weather-V7.xml 內容 代碼: <?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2011 Shyangs @ http://shyangs.110mb.com/microsummary/tw-weather-V7.html --> <generator xmlns="http://www.mozilla.org/microsummaries/0.1" name="TW weather" uri="urn:{b73d2227-3831-4ce4-ab0e-21d044651e48}"> <pages> <include>^http://www\.cwb\.gov\.tw/pda/observe/real/.*\.htm</include> </pages> <template> <transform xmlns="http://www.w3.org/1999/XSL/Transform" version="1.0"> <output method="text"/> <template match="/"> <value-of select="normalize-space(string(//div[@id='content']/ul/li[2]/select/option[@selected]))"/> <text>(</text> <value-of select="normalize-space(string(//div[@id='content']/ul[2]/li/span[2]))"/> <text>):</text> <value-of select="normalize-space(string(//div[@id='content']/ul[2]/li[2]/span[2]))"/> <text>,</text> <value-of select="normalize-space(string(//div[@id='content']/ul[2]/li[3]/span[2]))"/> <text>℃</text> </template> </transform> </template> <update interval="60"/> </generator> |
|
| 第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|