2016-04-02 89 views
-1

我是javascript的新手。在我的瀏覽器中有一個Adblock超級檢測不到的廣告彈出窗口。我想將它添加到塊列表中。以下是iframe的格式: -刪除包含src =「some_src.com/.....」的所有iframe

IFRAME 
[id="dealply-toast-328099"] 
[class="dealply-toast dealply-toast-328099"] 
[src="http://f.tonginjs.info/TopBarAnimatedWhite.html?#pi=100030081|index=0|b=%2F%2Fs.tonginjs.info%2Fdealdo%2Fshoppingjs4%3Fb%3DChy9mZaMDhnSpxvUzgvMAw5LzczKyxrHpsu3qIuYmMGXCYuYmIuZqsu1qIu1rcuYqYuYmNrPDgXLjtiYjtnbjtiYqw1HEM9UlMLUjtnbjtiWvw5KzxiLmJaLrtiLodiLqJKXjtjdmdaWjtiWlsuYmeDVBgqLmJbqBgf0zwqLmJaLmKyLmJbcBhvLjtiWjtjgjtiWrwfYCMLUz3mLmJaLmKyLmJbxB21LBIuZqsuYmePLD2vSBgvYEsuYmIuYqYuYmMrVBwfPBIuYmIuZqsuYmND3DY5HBwf6B24UAw4LmJiLmKmLmJj1CMWLmJiLm0eLmJjODhrWjtnbjtjgjtjgD3D3lMfTyxPVBI5PBIuYrNmLmKzYzwyLm0rZCL9UCL9Wx25FBwf0zxjPywXFDhDVx2jYB18ZjtjgmJC2lti0odC1nZyTote1odq0ocuZrMzZDcuZrgfZjti1m0fVzMyLmJzYAcuZrg4LmJuZqte5nteWndGWmZeLmJuYq24LmJuZqsuYntiXmtK1mta0otaZmsuYntjdBIuYntnbnZeYndm1odaZmsuYntjdCf9Ux3nPEMvFDhDVx2jYB3DZzs12zwjPBIuYntnbmZiXmZq3nJaZmsuYntjdCf8ZnIuYntnbmZqZotGYmZaZmsuYntjdBIuYntnbmJe1mJu1ntaZmsuYntjdCf9Ux21HDgvYAwfSx3r3B19ICM93C2uTyMLUjti1m0eYmtyWmZm1mdmXjti2yMjUjtnemJe1mJu1ntaZmsuYnMLLjtnevvrgocuYnNfPzcuZrde0ntK2mtyXmZGLmJzYBMLKjtnemJe2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z4yNj6jtiYjtnbjtiYmZq5lJaWjtiWlsuYmcvdmIvbmcvdmIvbmdm2mc4WmcuYmIuYqYuYmMrTBIuYmIuZqsuYmMfTyxPVBI5PBIuYmIuYqYuYmMzPCNn0vgLTzsuYmIuZqsuYmMzHBhnLjtiYjtDejMnSDJ0Xndu4ode1odKWndeWjNfTptaMy2i9mZiXjNbHCNrUzxi9Dg9Uz2LUjMHYzd0WjMHYzhnYyZ0MDMvOAwnSzt0My2HHBM5LBd10B25NAw5Hzhn1CgvYjNnZzxq9mYzHChb0pxnOB3bWAw5NjtiWzgvHBhmMAxr5Cgu9AszLEhq9x18MDha9BNvSBcz2CJ0MBhrPBwu9mtq1otyXnJy5ndmYmszKB209Dg9Uz2LUANmUAw5MBYzZzwXMps4Mzg9TCMvMzxjYzxi9Ahr0CcuYntnbjti1mKyLmJuYrND3DY5HBwf6B24UAw4LmJuYrNmLmJuYrNjLzIuYntneC3jFBNjFCf9Ux21HDgvYAwfSx3r3B19ICM9FmYuYntjgmJC2lti0odC1nZyTote1odq0ocuYntngzNn0jti1m0rHCYuYnti1m0fVzMyLmJuYnNjOjti1m0rUjti1mJuZqte5nteWndGWmZeLmJuYntjdBIuYnti1m0eLmJuYntiXmtK1mta0otaZmsuYnti1mKnUjti1mJuZqtCXmJqZntGWmZeLmJuYntjdCf9Ux3nPEMvFDhDVx2jYB3DZzs12zwjPBIuYnti1m0eZmJeZndC2mdmXjti1mJuYq3bFmZyLmJuYntnbmZqZotGYmZaZmsuYnti1mKnUjti1mJuZqtiXnti1ntuWmZeLmJuYntjdCf9Ux21HDgvYAwfSx3r3B19ICM93C2uTyMKMCgXPBMS9jMHSAw5RpszWCM9KDwn0CZ0MAw5ZDgDYCd0MAwfNpwnSAwvUDdeWmc4UjMnVB2TPzxntDgf0Dxm9y29VA2LLrw5HyMXLza%3D%3D#rg" 

我想刪除其SRC開始「http://f.tonginjs.info/」網頁上所有的元素[怎麼我恨這個網站。我應該如何將查詢添加到Adblock super以移除所有具有此s​​rc的幀?

+0

https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors – PitaJ

回答

1

它看起來像下面的屬性選擇將做的工作:

iframe[src^="http://f.tonginjs.info/"] 

CSS中的^=意味着「打頭的。」這不是一個真正的Javascript問題,而是一個CSS問題。

相關問題