Difference between revisions of "Phishing fix favlet"

From Level Access Web Labs
Jump to navigation Jump to search
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<a href="javascript:(
<a href="javascript:void((function(){ var%20element=document.createElement('script'); element.setAttribute('src','https://mraccess77.github.io/favlets/phishing_fix_favlet.js'); document.body.appendChild(element)})());"> Phishing Fix Favlet </a>
function traverseFrames(doc,_SRObj) {
// check for sr-only class in current document and then check it's frames
document.querySelectorAll('.callout-trigger').forEach(function (n) { n.setAttribute('tabindex','0'); n.setAttribute('role','button');})
// go through for each frame's document if there are any frames
var frametypes= ['frame','iframe'];
for (var i=0;i<frametypes.length;i++) {
var myframes=doc.getElementsByTagName(frametypes[i]);
for (var z=0;z<myframes.length;z++) {
try {
  } catch(e) {
  //errors are stored in _SRObj too
_SRObj.extFrameSrcList = _SRObj.extFrameSrcList + '\n' + myframes[z].src;
_SRObj.frameErrorCount=_SRObj.frameErrorCount + 1;
return _SRObj;
})();void(0);"> Phishing Fix Favlet </a>
<p class="callout-trigger"> test </p>
<p class="callout-trigger"> test </p>

Latest revision as of 20:29, 22 November 2019