PageSourceSearch

https://www.scamdex.com/__INCLUDES/bs/js/scamdex.js

js scamdex.com collected 2026-10-03 21:24:59 UTC 3,268 bytes, 112 lines download raw bytes

1/* ## Bootstrappy functions....  Mark: June 2015 */
2
3function showtab(tabpanel) {
4  $(".active").addClass('ttab').removeClass('active');
5  $('#'+tabpanel+'_t').addClass('active');
6  $(".ttabpane").hide();
7  $('#'+tabpanel).show();
8}
9
10function doGoogleSearch(q) {
11  $('#gsc-i-id1').val(q);
12  //$('#googlesearchterm').val(q);
13  $('.gsc-search-button').click();
14}
15
16function doTipSearch(fieldn, fvalue, classsite)
17{
18 var newloc = 'http://www.scamalot.com/ScamTipsAnal/more_'+fieldn+'/'+fvalue;
19 if (fieldn == 'class_site') newloc = newloc+'/'+classsite;
20 window.location.href=newloc;
21 return false;
22} 
23
24function showScamTypes(action)
25{ if (action == 1) { $("#ScamChoose").show(); }
26  else { $('#ScamChoose').fade({ delay: 9, duration: 1 }); }
27  return true; 
28}
29
30function ShowHeaders(fstatus) {
31 if (fstatus==0)  $('#myFolderList').hide(); 
32 if (fstatus==1)  $('#myFolderList').show();
33}
34
35function HideAds() {
36  var date = new Date();
37  date.setTime(date.getTime()+(24*60*60*1000));
38  var expires = "; expires="+date.toGMTString();
39  document.cookie = 'aDzLd=true; expires='+expires+'; path=/';
40  alert('OK, They\'re gone!\n.... for today\nCreate an account and you won\'t\nsee them again!');
41}
42
43function ShowAds() {
44  document.cookie = 'aDzLd=true; expires=Fri, 27 Jul 2001 02:47:11 UTC; path=/';
45  alert('Thanks for supporting Scamdex!\nRemember to visit our Sponsors links.');
46}
47
48// Only for MHDB and HYPMAIL pages 
49function initMHDB(db) {
50// JQOK?
51	var badlink = (db == 'hypmail'?'#MHBODY A':'#MajorContent A');
52        var founds = '';
53	$(badlink).each(function(ele) {
54		founds += ele;
55		var nid = Element.identify(ele); 
56		oho = ele;
57		if (ele.href.search(/scamdex\.com/i) > 0 ||ele.href.search(/javascript\:/i) > 0) return; 
58		var tagcont = ele.innerHTML.stripTags().escapeHTML();
59		Element.writeAttribute(ele,{'class': 'badlink', 'title': 'Suspect URL: '+ele.href, 
60		'rel': 'nofollow', 'onclick': 'return ShowURL(\''+ele.href+'\', \''+ele.textContent+'\')', 'target': '_blank'});
61	});
62	//alert('Found the following links:\n'+founds);
63}
64
65function ShowURL(surl,txt) {
66  // var data = $A(arguments);
67  var safeurl = encodeURIComponent(surl);
68  TINY.box.show(
69	{iframe:'/__INCLUDES/__check4Phish.php?wp='+safeurl+'&txt='+txt,
70	html:'Please wait a little',
71	boxid:'frameless',
72	//image:'/scripty/tinybox/images/',
73	width:750,height:450,
74        animate:true,
75	fixed:false,
76	maskid:'bluemask',
77	maskopacity:40,
78	closejs:function(){closeJS()}
79	}
80   );
81  return false;
82}
83
84
85/*
86function sendNSearch(srchfrm) {
87 new Ajax.Updater('SearchResults','/__INCLUDES/__searchFresh.php', {
88   onCreate: function(){ $('Searching').show(); },
89   onComplete: function(){ $('Searching').hide(); },
90    method: 'get',
91    evalScripts: true,
92    parameters: $(srchfrm).serialize()
93   }
94  )
95  return false;
96}
97*/
98
99
100/*
101function getMostPop(poptype, popfreq, popnum)
102{
103 new Ajax.Updater('popresults','/__INCLUDES/scamDB_Functions.php?A=MP&C='+poptype+'&F='+popfreq+'&S='+popnum, {
104   onCreate: function(){ 
105      $('popresults').innerHTML = '<h1>Compiling Results.....</h1><br><img src="/images/preloader.gif" border="0">'; 
106   },
107   method: 'get',
108   evalScripts: true
109   }
110  )
111}
112*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.