For everything that's not in any way related to PureBasic. General chat etc...
BarryG
Addict
Posts: 4173 Joined: Thu Apr 18, 2019 8:17 am
Post
by BarryG » Tue Feb 11, 2025 12:24 pm
Agreed. I often find that my Google searches go to the old domain and then I can't reply to them.
Caronte3D
Addict
Posts: 1361 Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe
Post
by Caronte3D » Tue Feb 11, 2025 12:51 pm
For that maybe the best solution would be to pointing (redirect?) purebasic.com to purebasic.fr
chi
Addict
Posts: 1087 Joined: Sat May 05, 2007 5:31 pm
Location: Austria
Post
by chi » Tue Feb 11, 2025 3:25 pm
A couple years ago I made this script for Violentmonkey (Tampermonkey, etc). I don't know if I missed something, but it works well enough for me.
Code: Select all
// ==UserScript==
// @name PB.com Forum Redirect
// @version 1.0
// @author chi
// @description Redirects a .com URL to .fr domain
// @match *://*purebasic.com/english/*
// @match *://*purebasic.com/german/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Get the current URL
var currentURL = window.location.href;
// Check if the current URL contains ".com"
if (currentURL.includes(".com")) {
// Replace ".com" with ".fr" in the URL
var newURL = currentURL.replace(/\.com/g, ".fr");
// Redirect to the new URL
window.location.href = newURL;
}
})();
Et cetera is my worst enemy
Piero
Addict
Posts: 923 Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy
Post
by Piero » Wed Feb 12, 2025 3:39 pm
If you want, you can just make (replace the link of) a bookmark; if you put it on toolbar you will just need one click!
Code: Select all
javascript:(function() {var currentURL = window.location.href;if (currentURL.includes(".com")) {var newURL = currentURL.replace(/\.com/g, ".fr");window.location.href = newURL;}})();
Piero
Addict
Posts: 923 Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy
Post
by Piero » Fri Feb 14, 2025 10:29 pm
This other example searches the selected text on PB forums with google:
Code: Select all
javascript:window.open('https://www.google.com/search?q=site%253Apurebasic.fr%20'+document.getSelection());
BarryG
Addict
Posts: 4173 Joined: Thu Apr 18, 2019 8:17 am
Post
by BarryG » Sat Feb 15, 2025 2:32 am
.com is more professional and universal than .fr anyway, so IMO it should go back to that.