Page 1 of 1
Clean Yahoo Search Links
Posted: Mon Nov 23, 2015 3:25 pm
by therube
Clean Yahoo Search Links
Yahoo is the default search engine for some locals (Including en-US).
Yahoo includes "crap" in their search links.
NoScript should clean the crap on Yahoo search links as it does with Google search links?
Code: Select all
http://r.search.yahoo.com/_ylt=A0LEVy1FL1NWq5EAZANXNyoA;_ylu=X3oDMTEyOHE2OHFjBGNvbG8DYmYxBHBvcwMxBHZ0aWQDQjEyMDNfMQRzZWMDc3I-/RV=2/RE=1448320965/RO=10/RU=http%3a%2f%2fnoscript.net%2f/RK=0/RS=.2bBw9RxdvGH07giLO.4zMtYFOY-
Re: Clean Yahoo Search Links
Posted: Mon Nov 23, 2015 5:53 pm
by barbaz
+1
Are all their links in that format (as in, the URL is always RU= and the parameters are always given in that format)?
Re: Clean Yahoo Search Links
Posted: Fri Dec 18, 2015 4:04 am
by therube
And now, Evil Yahoo:
Code: Select all
[NoScript InjectionChecker] JavaScript Injection in ///_ylt=A0LEVilshXNWN.gABCsnnIlQ;_ylu=X3oDMTByOHZyb21tBGNvbG8DYmYxBHBvcwMxBHZ0aWQDBHNlYwNzcg--/RV=2/RE=1450440173/RO=10/RU=http%3a%2f%2fwww.seamonkey-project.org%2f/RK=0/RS=h8X9cuGAEwMihkBKgLqrOLmfRGo-
(function anonymous() {
_ylt=A0LEVilshXNWN.gABCsnnIlQ;_ylu=X3oDMTByOHZyb21tBGNvbG8DYmYxBHBvcwMxBHZ0aWQDBHNlYwNzcg-- /* COMMENT_TERMINATOR */
DUMMY_EXPR
})
Code: Select all
[NoScript XSS] Sanitized suspicious request. Original URL [http://r.search.yahoo.com/_ylt=A0LEVilshXNWN.gABCsnnIlQ;_ylu=X3oDMTByOHZyb21tBGNvbG8DYmYxBHBvcwMxBHZ0aWQDBHNlYwNzcg--/RV=2/RE=1450440173/RO=10/RU=http%3a%2f%2fwww.seamonkey-project.org%2f/RK=0/RS=h8X9cuGAEwMihkBKgLqrOLmfRGo-] requested from [https://search.yahoo.com/yhs/search?p=seamonkey&ei=UTF-8&hspart=mozilla&hsimp=yhs-002]. Sanitized URL: [http://r.search.yahoo.com/_ylt%20A0LEVilshXNWN.gABCsnnIlQ;_ylu%20X3oDMTByOHZyb21tBGNvbG8DYmYxBHBvcwMxBHZ0aWQ20HNlYwNzcg-/RV%202/RE%201450440173/RO%2010/RU%20http://www.seamonkey-project.org//RK%200/RS%20h8X9cuGAEwMihkBKgLqrOLmfRGo-#4090625723595245600].
Re: Clean Yahoo Search Links
Posted: Fri Dec 18, 2015 4:53 am
by barbaz
This work? -
noscript.surrogate.ylinks.replacement
Code: Select all
for(let a of document.querySelectorAll('a[href*="/RU="]')){a.addEventListener('mousedown',function(){if(/^https?:\/\/r\.search\.yahoo\.com/.test(a.href)){a.href=decodeURIComponent(/\/RU=([^\/]+)\//.exec(a.href)[1])}},false)}
.sources
Re: Clean Yahoo Search Links
Posted: Sat Oct 14, 2017 3:36 am
by therube
This work? (untested)
How, where?
Re: Clean Yahoo Search Links
Posted: Sat Oct 14, 2017 4:01 am
by barbaz
Turns out it didn't work. Tested and fixed above.
Re: Clean Yahoo Search Links
Posted: Sat Oct 14, 2017 4:58 pm
by therube
That works, thanks
.
Much quicker without all that nonsense.
Re: Clean Yahoo Search Links
Posted: Sat Oct 14, 2017 5:35 pm
by barbaz
You're welcome.
Re: Clean Yahoo Search Links
Posted: Sat Oct 14, 2017 5:37 pm
by barbaz
Moving to NoScript Surrogates.
I found a potential bug in the surrogate. Fixed above.