如何去除有道雲筆記廣告(windows)


一、適用於6.0之前版本

你只需要:找到有道雲筆記的安裝路徑,*\Youdao\YoudaoNote\theme\build.xml
用筆記本打開這個文件,找到‘左下角廣告’這幾個字,把下面的代碼刪掉:

<PanelAd type="adpanel" css="public" ass="mainform panelclient PanelAd">
         <panelTopLine type="panel" css="AdPanel" Dockstyle="top" Bounds="0,0,0,1"/>
         <AdPhoto type="photo" css="Ad AdPhoto" ass="common fill"/>
         <AdText type="label" css="AdText" AnchorStyle="topleft" Bounds="20,135,25,10" Margin="0,0,0,0"/>
</PanelAd>

之后保存,重啟有道雲筆記,就可以了。

二、6.0及以后版本

找到有道雲筆記的安裝路徑,*\Youdao\YoudaoNote\theme\build.xml
用筆記本打開這個文件,找到PanelAd標簽,大概在366行

<PanelAd type="adpanel" css="public" ass="mainform PanelAd">
    <panelTopLine type="panel" css="AdPanel" Dockstyle="top" Bounds="0,0,0,1"/>
    <MiddlePhotoPanel type="panel" css="public" DockStyle="top" Bounds="0,0,250,160" Margin="0,13,0,13">
        <AdPhoto type="photo" css="Ad AdPhoto" AnchorStyle="center" AutoZoom="ZoomEqual" Bounds="0,0,200,130">
            <AdClose type="button" css="adclear" AnchorStyle="topright" Bounds="-1,1,24,24" />
            <AdText type="label" css="AdText" AnchorStyle="bottomleft" Bounds="6,-6,25,10"/>
        </AdPhoto>
    </MiddlePhotoPanel>
</PanelAd>

刪除ass屬性里面的panelclient這個值,我上面的截圖是刪除之后的。
然后找到AdWraperMid這個標簽,大概在466行,修改bounds屬性值為0,0,0,0。

<!-- 底部廣告-->
<AdWraperMid type="panel" css="public" dockstyle="bottom" visible="false" bounds="0,0,0,0">
    <PanelAdMid type="control" control="PanelAd">
    </PanelAdMid>
    <LeftShadow type="control" control="MidPanelLeftShadow"/>
</AdWraperMid>

之后保存,重啟有道雲筆記,就可以了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM