User:Vetle/common.js
From PCGamingWiki, the wiki about fixing PC games
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// Clean links (function(){document.querySelectorAll('a').forEach(function(a){if((href=a.getAttribute('href'))!==null){a.setAttribute('href',href.replace(/(?:^(?:https?:)?\/\/(?:www\.)?(?:dpbolvw\.net\/.*?[?&]url=|microsoft\.msafflnk\.net\/.*?[?&]u=)|\?(?:tag=pcgamingwiki-21|caff=5418682|tap_a=1964-996bbb&tap_s=341948-7fd0d2|tag=pcgamingwik0e-20|ref=pcgwiki|utm_source=PCGamingWiki&utm_medium=PCGamingWiki&utm_campaign=PCGamingWiki|pp=708a77db476d737e54b8bf4663fc79b346d696d2|partner=pcgw))/g,''))}})})();