parent
4c442f6253
commit
4141953cee
1 changed files with 10 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ ConversationPageState.prototype = {
|
|||
this.updateDirection();
|
||||
this.createControllableQuotes();
|
||||
this.wrapSignature();
|
||||
this.deceptiveLinksTitle();
|
||||
PageState.prototype.loaded.apply(this, []);
|
||||
},
|
||||
/**
|
||||
|
|
@ -151,6 +152,15 @@ ConversationPageState.prototype = {
|
|||
}
|
||||
}
|
||||
},
|
||||
deceptiveLinksTitle: function() {
|
||||
let pattern = /^((http|https|ftp):\/\/)/;
|
||||
let anchors = document.getElementsByTagName("a");
|
||||
for (var i = 0; i < anchors.length; i++) {
|
||||
if(pattern.test(anchors[i].title)) {
|
||||
anchors[i].title = anchors[i].href;
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Look for and wrap a signature.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue