-
Hi! From the docs, I understand that Vieb supports Greasemonkey-like userscripts. So, I create some simple script, like this:
Then, save it as So, what am I missing? :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Okay, so there are 2 bugs that cause this to not work, I'll fix both in the future, but for now you could make it work by changing the following:
// ==UserScript==
// @name Twitter to Nitter
// @description redirects Twitter to Nitter
// @namespace some
// @author some
// @match https://*.twitter.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
if (location.href.includes("mobile.twitter.com")) {
window.location.replace(window.location.href.replace("mobile.twitter.com", "nitter.net"));
} else if (location.href.includes("twitter.com")) {
window.location.replace(window.location.href.replace("twitter.com", "nitter.net"));
} But I'll make sure that in the future your version will work only on twitter like it should. Though keep in mind that this specific userscript is not needed, as the very same can be achieved with the redirects setting, like so:
|
Beta Was this translation helpful? Give feedback.
-
I also noticed that the match pattern |
Beta Was this translation helpful? Give feedback.
Aha, as soon as I removed Google test userscript, Twitter-Nitter one started to work... Will continue to experiment :)
Thanks once again for all your time and support !