我是javascript的新手。在我的浏览器中,有一个Adblock super未检测到的广告弹出窗口。我想将它添加到阻止列表中。以下是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%3DChy9mZaMDhnSpxvUzgvMAw5LzczKyxrHpsu3qIuYmMGXCYuYmIuZqsu1qIu1rcuYqYuYmNrPDgXLjtiYjtnbjtiYqw1HEM9UlMLUjtnbjtiWvw5KzxiLmJaLrtiLodiLqJKXjtjdmdaWjtiWlsuYmeDVBgqLmJbqBgf0zwqLmJaLmKyLmJbcBhvLjtiWjtjgjtiWrwfYCMLUz3mLmJaLmKyLmJbxB21LBIuZqsuYmePLD2vSBgvYEsuYmIuYqYuYmMrVBwfPBIuYmIuZqsuYmND3DY5HBwf6B24UAw4LmJiLmKmLmJj1CMWLmJiLm0eLmJjODhrWjtnbjtjgjtjgD3D3lMfTyxPVBI5PBIuYrNmLmKzYzwyLm0rZCL9UCL9Wx25FBwf0zxjPywXFDhDVx2jYB18ZjtjgmJC2lti0odC1nZyTote1odq0ocuZrMzZDcuZrgfZjti1m0fVzMyLmJzYAcuZrg4LmJuZqte5nteWndGWmZeLmJuYq24LmJuZqsuYntiXmtK1mta0otaZmsuYntjdBIuYntnbnZeYndm1odaZmsuYntjdCf9Ux3nPEMvFDhDVx2jYB3DZzs12zwjPBIuYntnbmZiXmZq3nJaZmsuYntjdCf8ZnIuYntnbmZqZotGYmZaZmsuYntjdBIuYntnbmJe1mJu1ntaZmsuYntjdCf9Ux21HDgvYAwfSx3r3B19ICM93C2uTyMLUjti1m0eYmtyWmZm1mdmXjti2yMjUjtnemJe1mJu1ntaZmsuYnMLLjtnevvrgocuYnNfPzcuZrde0ntK2mtyXmZGLmJzYBMLKjtnemJe2mdmYotaZmsuYmIuYqYuYmMnHBIuYmIuZqsuYmMH0DhaL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cvdmIvbmdm2mc4WmcuYmIuYqYuYmMrTBIuYmIuZqsuYmMfTyxPVBI5PBIuYmIuYqYuYmMzPCNn0vgLTzsuYmIuZqsuYmMzHBhnLjtiYjtDejMnSDJ0Xndu4ode1odKWndeWjNfTptaMy2i9mZiXjNbHCNrUzxi9Dg9Uz2LUjMHYzd0WjMHYzhnYyZ0MDMvOAwnSzt0My2HHBM5LBd10B25NAw5Hzhn1CgvYjNnZzxq9mYzHChb0pxnOB3bWAw5NjtiWzgvHBhmMAxr5Cgu9AszLEhq9x18MDha9BNvSBcz2CJ0MBhrPBwu9mtq1otyXnJy5ndmYmszKB209Dg9Uz2LUANmUAw5MBYzZzwXMps4Mzg9TCMvMzxjYzxi9Ahr0CcuYntnbjti1mKyLmJuYrND3DY5HBwf6B24UAw4LmJuYrNmLmJuYrNjLzIuYntneC3jFBNjFCf9Ux21HDgvYAwfSx3r3B19ICM9FmYuYntjgmJC2lti0odC1nZyTote1odq0ocuYntngzNn0jti1m0rHCYuYnti1m0fVzMyLmJuYnNjOjti1m0rUjti1mJuZqte5nteWndGWmZeLmJuYntjdBIuYnti1m0eLmJuYntiXmtK1mta0otaZmsuYnti1mKnUjti1mJuZqtCXmJqZntGWmZeLmJuYntjdCf9Ux3nPEMvFDhDVx2jYB3DZzs12zwjPBIuYnti1m0eZmJeZndC2mdmXjti1mJuYq3bFmZyLmJuYntnbmZqZotGYmZaZmsuYnti1mKnUjti1mJuZqtiXnti1ntuWmZeLmJuYntjdCf9Ux21HDgvYAwfSx3r3B19ICM93C2uTyMKMCgXPBMS9jMHSAw5RpszWCM9KDwn0CZ0MAw5ZDgDYCd0MAwfNpwnSAwvUDdeWmc4UjMnVB2TPzxntDgf0Dxm9y29VA2LLrw5HyMXLza%3D%3D#rg"
我想删除网页中所有以“http://f.tonginjs.info/”开头的src的元素[因为我讨厌这个网站]。我应该如何将查询添加到Adblock super以删除所有具有此src的帧?
答案 0 :(得分:1)
看起来以下属性选择器可以完成这项工作:
Injector injector = Guice.createInjector(new SwingUIModule(useCaseFactory));
injector.getInstance(MainFrameUI.class).show();
CSS中的iframe[src^="http://f.tonginjs.info/"]
表示“以...开头”。这不是一个Javascript问题,而是一个CSS问题。