How can I make a link to a websites link open a new link to a page I define? I want to be able to do this so that when my girlfriend clicks one of her website links it will direct to my website that asks if she will marry me.
I need to know if it is possible so that when my girlfriend clicks on a link on one of her websites that it can be linked to open up another page to a website of mine or another page that I can ask if she will marry me on it.
For example, she opens facebook then clicks lets say my name, I want to link that click with it to open a new page not for that site but to open and direct her to my web page.
所有回覆 (2)
If you are admin on the website you should be able to modify the url posted. For example a command like [url]www.willyoumarryme.com[name]facebook.com/name/url (This is how a previous website worked). Hope that helped, also congrats on the marriage!
Edit: The post turned into links but after facebook.com it was [ / name ] [ / url ]. (without spaces)
由 Joab 於
You could write and install a Greasemonkey script that changes links on a web page to your wedding proposal page.
- Greasemonkey: https://addons.mozilla.org/firefox/addon/greasemonkey/
- GreaseSpot: http://wiki.greasespot.net/Main_Page
You need basically something like this:
(function(){var A,L=document.links,N='http://<my_url>',i;for(i=0;A=L[i];i++){A.href=N;}})();
You can see the effect if you paste this bookmarklet in the location bar:
javascript:(function(){var A,L=document.links,N='http://google.com',i;for(i=0;A=L[i];i++){A.href=N;}})();