darkfreaks Posted August 29, 2008 Share Posted August 29, 2008 anyhow i have a script that is for a firefox addon that uses regex to match sites if it is a known fraud site it will display an X if it is imvu.com it will display a checkmark , however i want to allow other sites like imvupay.com to display the checkmark as well without it displaying an X like it does now how would i do this? ill leave the code below for examination. <script type=javascript> // ==UserScript== // @name IMVU fraud check // @namespace vampirefreaks.com/dark-freaks // @include * // ==/UserScript== bc = document.getElementsByTagName("body")[0]; wl = unescape(window.location); dc = document.title; t1= new RegExp("IMVU: 3D Avatar Chat Instant Messenger & Dress Up Game"); t= new RegExp("IMVU - Invite Your Friends and Get FREE Credits!"); p= new RegExp("Buy Credits : IMVU"); a= new RegExp("IMVUPay - Home - 3D Chat, IMVU Credits, Free IMVU Credits, IMVU Buy Credits, IMVU Sell Credits - IMVU Credit Exchange"); p1= new RegExp("IMVU give credits"); p2= new RegExp("IMVU - IMVU Prepaid Cards"); p3= new RegExp("IMVU gifts"); p4= new RegExp("Join IMVU's VIP Club and receive the benefits of status!"); p5= new RegExp("Shopping Cart"); p5= new RegExp("IMVU - Purchase an Access Pass and meet other Adults!"); p6= new RegExp("IMVU Customer Service"); p7= new RegExp("IMVU Catalog"); p8= new RegExp("IMVU Groups"); t2= new RegExp("WELCOME to imvu-reseller"); t3= new RegExp("IMVUCheaters.com The best source for IMVU Cheats and Guides"); t4= new RegExp("IMVU Credits"); t5= new RegExp("Imvu Credits - Buy Imvu Credits"); t6= new RegExp("WELCOME to imvuex"); t7= new RegExp("IMVU Credits, Cheap IMVU Credits, Buy IMVU Credits - Professional IMVU Reseller"); t8= new RegExp("Imvu credits_Buy Imvu Credits"); t9= new RegExp("mabinogi gold,lunia gold,tibia gold,imvu credits,runescape gold"); t10= new RegExp("Imvu Credits,Buy Imvu Credits,Cheap Imvu Credits,Imvu Credit,cheap imvu credit"); t11= new RegExp("YouTube - IMVUHelper's Channel"); t12= new RegExp("Imvu Credits,cheap imvu credits,imvu credit,cheap imvu credit"); t13= new RegExp("IMVU CheatClub - The Best IMVU Cheats on the Net!"); ur1 = new RegExp("http://[A-Za-z0-9]+?\.imvu.com"); ur2 = new RegExp("http://[A-Za-z0-9]+?\.imvu.com.+"); ur3 = new RegExp("http://imvu.com.+"); ur4 = new RegExp("http://imvu.com"); z= new RegExp("http://[A-Za-z0-9]+?\.imvupay.com"); z1= ur2 = new RegExp("http://[A-Za-z0-9]+?\.imvupay.com.+"); z2= new RegExp("http://imvupay.com.+"); z3 = new RegExp("http://imvupay.com"); if(t1.exec(dc)||t.exec(dc)||p.exec(dc)||p1.exec(dc)||p2.exec(dc)||p3.exec(dc)||p4.exec(dc)||p5.exec(dc)||p6.exec(dc)||p7.exec(dc)||p8.exec(dc)||a.exec(dc)){checkIt()} else if(t2.exec(dc)||t3.exec(dc)||t4.exec(dc)||t5.exec(dc)||t6.exec(dc)||t7.exec(dc)||t8.exec(dc)||t9.exec(dc)||t10.exec(dc)||t11.exec(dc)||t12.exec(dc)||t13.exec(dc)){checkIt()} function checkIt(){ imgs = document.createElement("img"); imgs.setAttribute("style", "position:fixed; left:100%; top: 100%; margin-top:-50px; margin-left:-50px; width:50px; height:50px; cursor: pointer; z-index: 100;"); imgs.setAttribute("id", "phish_check_image"); imgs.addEventListener("click", hid, true); if(ur1.exec(wl)||ur2.exec(wl)||ur3.exec(wl)||ur4.exec(wl)){ imgs.setAttribute("src", "http://i36.tinypic.com/167mlb6.png"); } else { imgs.setAttribute("src", "http://i35.tinypic.com/2ijkid.png"); } bc.appendChild(imgs); } function hid(){ im = document.getElementById("phish_check_image"); im.parentNode.removeChild(im); } </script> Quote Link to comment https://forums.phpfreaks.com/topic/121889-imvu-script-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.