const BaseExtractor = require('./base');

class CasinoReviews extends BaseExtractor {
  constructor() { super(); this.patterns = [/casinoreviews\.com/]; }
  getExtractCode() { return String.raw`
(function(){var R=[],S={};for(var im of document.querySelectorAll('img[alt]')){if(R.length>=25)break;var a=(im.alt||'').trim();if(!/casino/i.test(a))continue;if(/^(visa|mastercard|apple pay|google pay|skrill|neteller|trustly|palsafc|interac|paypal|neolurf|coinspaid)/i.test(a.substring(0,12)))continue;var nm=a.replace(/\s*Casino$/i,'').trim();if(nm.length<3||S[nm])continue;S[nm]=true;R.push({name:nm,link:'',bonus:''});}return R.slice(0,25);})()`;}
} module.exports=CasinoReviews;
