Skip to content

Instantly share code, notes, and snippets.

@chyngyz
Last active June 29, 2016 12:29
Show Gist options
  • Save chyngyz/f7b0e55ffdb190d104db4762178cb93b to your computer and use it in GitHub Desktop.
Save chyngyz/f7b0e55ffdb190d104db4762178cb93b to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<head>
<meta name="ydWidgetData" id="b2340f0afdb2a3f87db13fdcc95d6e15" content="" data-sender_id="1063" data-weight="3" data-cost="0" data-height="20" data-length="60" data-width="60" data-city_from="Москва" data-css_name="geo_tpl" data-tpl_name="geo_tpl" data-container_tag_id="e26f8338e11b809b3164b8b7ac2d9d6"
data-resource_id="2212" data-resource_key="56af5968d828f2f2f99424afebdac95a" data-tracking_method_key="ecdcf61349490fc80d31c9b8935a4ee6" data-autocomplete_method_key="0dbe6e447d0a828395b241e4a14527e0"></meta>
<!--[if lt IE 9]><script>document.createElement("msw");</script><![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://delivery.yandex.ru/widget/widgetJsLoader?dataTagID=b2340f0afdb2a3f87db13fdcc95d6e15" charset="utf-8"></script>
<script type="text/javascript">
window.onload = function() {
var check = setInterval(function() {
if ($('.w-var-delivery-post-cheapest').length) {
$("#e26f8338e11b809b3164b8b7ac2d9d6 .w-var-delivery-post-cheapest").remove();
console.log('found and cleared');
clearInterval(check);
}
console.log('check')
}, 0);
}
</script>
</head>
<body>
<msw id="e26f8338e11b809b3164b8b7ac2d9d6" class="yd-widget-container"></msw>
</body>
@ITEnot
Copy link

ITEnot commented Jun 29, 2016

<script defer type="text/javascript"> window.onload = function() { var check = setInterval(function() { if ($('#e26f8338e11b809b3164b8b7ac2d9d6 > msw.widget-card-body.w-table > msw.w-var-delivery-post-cheapest.msw-tr')) { $("#e26f8338e11b809b3164b8b7ac2d9d6 > msw.widget-card-body.w-table > msw.w-var-delivery-post-cheapest.msw-tr").remove(); clearInterval(check); } console.log('cleared') }, 0); } </script> <script src="https://delivery.yandex.ru/widget/widgetJsLoader?dataTagID=b2340f0afdb2a3f87db13fdcc95d6e15" charset="utf-8"></script>
<msw id="e26f8338e11b809b3164b8b7ac2d9d6" class="yd-widget-container"></msw>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment