From 524f64716b732465857de9cb37366a7893b2f00f Mon Sep 17 00:00:00 2001 From: Elad Karako Date: Tue, 18 Oct 2016 05:53:42 +0300 Subject: [PATCH] added variation of changing URL through location's "href" and "pathname" properties. --- manifest.json | 2 +- resources/at_document_end.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 2c40069..cca967b 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ , "short_name" : "__MSG_name_shrt__" , "description" : "__MSG_name_desc__" -, "version" : "1.5.4.3" +, "version" : "1.5.4.5" , "homepage_url" : "https://github.com/eladkarako/Chrome-Extension-Remove-Rude-Redirects/issues/" , "author" : "Elad Karako" diff --git a/resources/at_document_end.js b/resources/at_document_end.js index 4d53f5e..4d16712 100644 --- a/resources/at_document_end.js +++ b/resources/at_document_end.js @@ -53,17 +53,21 @@ , '[href]:not([href=""]):not([href^="#"])[onmousedown*="frames.open("]' , '[href]:not([href=""]):not([href^="#"])[onmousedown*=".href="]' , '[href]:not([href=""]):not([href^="#"])[onmousedown*="location="]' + , '[href]:not([href=""]):not([href^="#"])[onmousedown*="location.href="]' + , '[href]:not([href=""]):not([href^="#"])[onmousedown*="location.pathname="]' , '[href]:not([href=""]):not([href^="#"])[onmousedown*="location.replace("]' , '[href]:not([href=""]):not([href^="#"])[onmousedown*="location.reload("]' , '[href]:not([href=""]):not([href^="#"])[onmousedown*="location.assign("]' - , '[href]:not([href=""]):not([href^="#"])[onclick*="window.open("]' /* other (uncommon) */ + , '[href]:not([href=""]):not([href^="#"])[onclick*="window.open("]' /* other (uncommon) */ , '[href]:not([href=""]):not([href^="#"])[onclick*="self.open("]' , '[href]:not([href=""]):not([href^="#"])[onclick*="top.open("]' , '[href]:not([href=""]):not([href^="#"])[onclick*="parent.open("]' , '[href]:not([href=""]):not([href^="#"])[onclick*="frames.open("]' , '[href]:not([href=""]):not([href^="#"])[onclick*=".href="]' , '[href]:not([href=""]):not([href^="#"])[onclick*="location="]' + , '[href]:not([href=""]):not([href^="#"])[onclick*="location.href="]' + , '[href]:not([href=""]):not([href^="#"])[onclick*="location.pathname="]' , '[href]:not([href=""]):not([href^="#"])[onclick*="location.replace("]' , '[href]:not([href=""]):not([href^="#"])[onclick*="location.reload("]' , '[href]:not([href=""]):not([href^="#"])[onclick*="location.assign("]'