Skip to content

Instantly share code, notes, and snippets.

@dorukcan
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorukcan/ffd0f522d087ec5dfecf to your computer and use it in GitHub Desktop.
Save dorukcan/ffd0f522d087ec5dfecf to your computer and use it in GitHub Desktop.
ekşi: set title channel
//these codes go to developer console of https://tr.wikipedia.org/wiki/Kategori:ABD%27li_kad%C4%B1n_pop_%C5%9Fark%C4%B1c%C4%B1-s%C3%B6z_yazarlar%C4%B1
var titles = [];
$('#mw-pages .mw-content-ltr li>a').each(function(){
titles.push( $(this).attr('title').replace( new RegExp(" \\(.*?\\)","gm"), '') );
});
arr.join();
//these codes go to any page of https://eksisozluk.com
var titles = "Eric Adams,Akon,Alan Arkin".split(','),
channel = "müzik", i;
for(i=0; i < titles.length; i++){
$.get( "https://eksisozluk.com/?q=" + titles[i] ).success(function(data){
id = $(data).find('#title').attr('data-id');
$.post('https://eksisozluk.com/kanal-oner', {id: id,
channelName: channel,
suggestion: 1});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment