mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
parent
b361733c73
commit
d09340e84f
10 changed files with 89 additions and 37 deletions
|
@ -48,8 +48,14 @@
|
|||
const temp = {
|
||||
get name(){
|
||||
return checkerWrapper(checker, this, arguments, function(args, check){
|
||||
const {notify, original} = check;
|
||||
const {notify, original, prefs} = check;
|
||||
const originalName = original.call(this, ...args);
|
||||
if (
|
||||
this !== this.top &&
|
||||
prefs("allowWindowNameInFrames", this.location)
|
||||
){
|
||||
return originalName;
|
||||
}
|
||||
const returnedName = windowNames.get(this) || "";
|
||||
if (originalName !== returnedName){
|
||||
notify("fakedWindowReadout");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue