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
/* | |
This tool is useful to reach the seller if the ad is expired. Tested & works with Olx Egypt "olx.com.eg" | |
*/ | |
adid = document.URL.split("-ID")[1].split(".")[0]; | |
contact_info = "https://www.olx.com.eg/api/listing/" + adid + "/contactInfo/"; | |
ad_details = "https://www.olx.com.eg/api/listing/?external_id=" + adid; | |
callAPI(contact_info, function(d) { | |
j = JSON.parse(d); | |
//output seller name & registered mobile number if exists | |
console.log("name:", j.name, "\nmobile:", j.mobile); |
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
/* | |
@ Created By Mamdouh Freelancer | |
@ Feel free to contact me any time | |
# https://fb.me/Mamdouh.Freelancer | |
# https://stackoverflow.com/users/7040620/mamdouh-freelancer | |
*/ | |
function RedoUndo(a) { | |
if (!a) console.error("Add textarea using new RedoUndo(textareaElement)"); | |
var curr = 0; | |
this.redoButton = function(b) { |
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
/* | |
@Mamdouh Freelancer | |
SO account: http://stackoverflow.com/users/7040620/ | |
Github: https://github.com/Mamdouh-Freelancer | |
*/ | |
//usage: location.href.param("key"); | |
String.prototype.param = function(str) { | |
e = this.indexOf("?" + str + "=") > -1 ? "?" + str + "=" : "&" + str + "="; |