Menu
Home
Forums
Visual works
New media
New comments
Search media
Downloads
Info & rules
Site rules
Server list
Sanctuary Discord
Sanctuary FAQ
Sanctuary's origins
Staffing policies
Sanctuary YouTube
Members
Registered members
Current visitors
Banned members
User verification codes
Log in
Register
What's new
Search
Search
Search titles only
By:
Menu
Log in
Register
Welcome to the edge of the civilized internet! All our official content can be found
here.
If you have any questions, try our FAQ
here
or see our video on
why this site exists at all!
Home
Forums
Main Sub-Forums
Technophiliacs & Technophiles
How to stop Google from violating your rectums
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
<p>[QUOTE="Gauche, post: 15110, member: 83"]</p><p>Google changed some stuff and this no longer works</p><p></p><p>[SPOILER="Changed a few lines"]</p><p>[CODE=javascript]</p><p>// ==UserScript==</p><p>// @name Disable Google Search Result URL Redirector</p><p>// @namespace DisableGoogleSearchResultURLRedirector</p><p>// @version gauchemessedwithit</p><p>// @license GNU AGPLv3</p><p>// @description Disable Google URL redirector (i.e. user data tracking) on Google Search result, including Google Custom Search Engine (CSE) which is used by many websites, and in Google Groups.</p><p>// @include *://*/*</p><p>// @grant unsafeWindow</p><p>// @run-at document-start</p><p>// ==/UserScript==</p><p></p><p>//thanks jcunews</p><p></p><p>(function() {</p><p> </p><p> //===== CONFIGURATION BEGIN =====</p><p></p><p> var disableGoogleAdSense = true;</p><p> var disableInterstitials = true; //e.g. malware warning page</p><p></p><p> //===== CONFIGURATION END =====</p><p></p><p></p><p> if ((/(www|groups)\.google\.[a-z]+(\.[a-z]+)?/).test(location.hostname)) {</p><p> //Google site</p><p> addEventListener("mousedown", (ev, a) => {</p><p> //web search</p><p> if (unsafeWindow.rwt && (unsafeWindow.rwt !== rwt_)) unsafeWindow.rwt = rwt_;</p><p> //image search</p><p> if (a = ev.target.closest('a[data-ved]')) a.setAttribute("rlhc", "1");</p><p> }, true);</p><p> //Google web search site</p><p> function removeInterstitials() {</p><p> document.querySelectorAll('a').forEach(a => {</p><p> a.removeAttribute("data-sb");</p><p> });</p><p> }</p><p> addEventListener("scroll", () => {</p><p> if (disableInterstitials) removeInterstitials();</p><p> });</p><p> addEventListener("load", () => {</p><p> if (disableInterstitials) removeInterstitials();</p><p> });</p><p> }</p><p>})();</p><p>[/CODE]</p><p>[/SPOILER]</p><p>Works for me again</p><p></p><p><a href="https://github.com/uBlockOrigin/uAssets/issues/7960#issuecomment-2018914258">uBlock has it easy</a></p><p>[/QUOTE]</p>
[QUOTE="Gauche, post: 15110, member: 83"] Google changed some stuff and this no longer works [SPOILER="Changed a few lines"] [CODE=javascript] // ==UserScript== // @name Disable Google Search Result URL Redirector // @namespace DisableGoogleSearchResultURLRedirector // @version gauchemessedwithit // @license GNU AGPLv3 // @description Disable Google URL redirector (i.e. user data tracking) on Google Search result, including Google Custom Search Engine (CSE) which is used by many websites, and in Google Groups. // @include *://*/* // @grant unsafeWindow // @run-at document-start // ==/UserScript== //thanks jcunews (function() { //===== CONFIGURATION BEGIN ===== var disableGoogleAdSense = true; var disableInterstitials = true; //e.g. malware warning page //===== CONFIGURATION END ===== if ((/(www|groups)\.google\.[a-z]+(\.[a-z]+)?/).test(location.hostname)) { //Google site addEventListener("mousedown", (ev, a) => { //web search if (unsafeWindow.rwt && (unsafeWindow.rwt !== rwt_)) unsafeWindow.rwt = rwt_; //image search if (a = ev.target.closest('a[data-ved]')) a.setAttribute("rlhc", "1"); }, true); //Google web search site function removeInterstitials() { document.querySelectorAll('a').forEach(a => { a.removeAttribute("data-sb"); }); } addEventListener("scroll", () => { if (disableInterstitials) removeInterstitials(); }); addEventListener("load", () => { if (disableInterstitials) removeInterstitials(); }); } })(); [/CODE] [/SPOILER] Works for me again [URL='https://github.com/uBlockOrigin/uAssets/issues/7960#issuecomment-2018914258']uBlock has it easy[/URL] [/QUOTE]
Insert quotes…
Preview
Name
Verification
What is the name of the default style? (Look to the bottom left of the page.)
Post reply
Home
Forums
Main Sub-Forums
Technophiliacs & Technophiles
How to stop Google from violating your rectums
Top