Greasy Fork is available in English.

Google谷歌搜索页面dq.tieba.com贴吧链接替换 dq.tieba.com to tieba.baidu.com for Google results

最近访问dq.tieba.com老是出现 “您好,该页面正在维护中。” 于是就写了这个。为什么要在Google搜索页面替换呢?这是因为当你按dq.tieba.com时服务器就给你的浏览器发个HTTP 302重定向到维护页面,脚本都来不及执行

These are versions of this script where the code was updated. Vis alle versioner.

  • v0.22 05.10.2019 refactoring
  • v0.21 05.10.2019 memoised regex.test
  • v0.20 04.10.2019 avoid the 'this' keyword for good
  • v0.19 04.10.2019 improved regex
  • v0.18 04.10.2019 try {} catch {} -> try {} catch(err) {} ; minor formatting changes
  • v0.17 04.10.2019 improved regex
  • v0.16 04.10.2019 URL instances are cached; opted for arrow functions and const for readability
  • v0.15 03.10.2019 taken care of both 'q=' and 'url=' query strings; added weblight view handling
  • v0.14 03.10.2019 improved naming convention
  • v0.13 03.10.2019 map -> forEach
  • v0.12 03.10.2019 minor changes to code formatting
  • v0.11 03.10.2019 added more url matches; using standard url glob instead of regex for url patterns; refactored
  • v0.10 03.10.2019 support for google redirection links when user-agent is of a mobile browser
  • v0.9 03.10.2019 added www.tieba.com
  • v0.8 03.10.2019 beautified code
  • v0.7 03.10.2019 wrapped script in anonymous function
  • v0.6 03.10.2019 no more arrow functions
  • v0.5 03.10.2019 avoided arrow functions
  • v0.4 02.10.2019 Updated patterns
  • v0.3 02.10.2019 Updated description and name
  • v0.2 02.10.2019 updated description
  • v0.1 02.10.2019