This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://phonedl.ota.lenovomm.com/dls/v6/A7020a48_S122_160405_ROW_TO_A7020a48_S125_160419_ROW_WC8B95A21E.zip | |
| http://phonedl.ota.lenovomm.com/dls/v6/A7020a48_S259_160721_ROW_TO_A7020a48_S312_160926_ROW_WC4B1E7903.zip | |
| http://phonedl.ota.lenovomm.com/dls/v6/A7020a48_S312_160926_ROW_TO_A7020a48_S318_161128_ROW_WC04A2F728.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| var parse = function($$) { | |
| var category = $$.find("h1.sub-header-title").get(0).childNodes[0].nodeValue.trim() || "" | |
| return $$.find("div.container-fluid-bs > div.row:odd").map(function() { | |
| let $li = $("li", this) | |
| let data = [category, | |
| $("div.product-title", this).text().trim(), | |
| $("div.price", this).text().trim(), | |
| $("div.product-discount-container span", this).text().trim() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| var parse = function($$) { | |
| console.log("parse") | |
| var brands = $$.find("select[name=brand] option").map(function() { | |
| return this.value | |
| }).get() || [] | |
| brands.shift() | |
| var category = $$.find("div.nav-menu").text().trim() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://www.mchk.org.hk/english/list_register/list.php?&type=L | |
| (function($) { | |
| var parse = function($$) { | |
| return $$.find("table[cellpadding=4] tr").map(function(i) { | |
| if (i === 0) return "" | |
| let $td = $("td", this) | |
| let data; | |
| if ($td.eq(0).attr("headers") === "qualification") { | |
| data = ["", "", "", "", "", | |
| $td.eq(0).find("span:eq(0)").get(0).childNodes[0].data, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //For https://www.dpreview.com/products/search/cameras | |
| (function($) { | |
| var all = [] | |
| var parse = function() { | |
| $("td.info").each(function() { | |
| all.push([ | |
| $("div.name", this).text(), | |
| $("div.announcementDate", this).text(), | |
| $("div.prices", this).text(), | |
| ].concat($("div.shortProductSpecs", this).text().split("|")).join("\t")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Download links and append html body to parent | |
| var doc = (window.frames.length > 1) ? window.frames[2].document : document | |
| var jQuery = jQuery || window.frames[2].window.jQuery || null | |
| if (!jQuery) { | |
| var s = document.createElement('script'); | |
| s.setAttribute('src', 'http://code.jquery.com/jquery.js'); | |
| doc.body.appendChild(s); | |
| } else { | |
| (function($, doc) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Download links' text beautifier | |
| var doc = (window.frames.length > 1) ? window.frames[2].document : document | |
| var jQuery = jQuery || window.frames[2].window.jQuery || null | |
| if (!jQuery) { | |
| var s = document.createElement('script'); | |
| s.setAttribute('src', 'http://code.jquery.com/jquery.js'); | |
| doc.body.appendChild(s); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| parse = function(data, textStatus, jqXHR) { | |
| console.log(data) | |
| orders = data.mainOrders | |
| rows = [] | |
| for (let mOrder of orders) { | |
| header = [] | |
| body = [] | |
| header = [mOrder.id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| t = null | |
| checkResult = function(coupon, coupons) { | |
| let msg = $("#allcoupon_msg").text() | |
| if (msg == "") { | |
| t = setTimeout(checkResult, 500, coupon, coupons) | |
| console.log(coupon + " wait for 500ms") | |
| } else { | |
| $("#allcoupon_msg").html("") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://www.lego.com/en-us/service/buildinginstructions/search | |
| //Please jQuerify first | |
| $("li.bi-result").each(function(){ | |
| let title=$("div.bi-top h4.title",this).next().text() + " - " + $("div.bi-top h4.title",this).text() | |
| $("a[download]",this).html(title) | |
| }) |