You are viewing our Forum Archives. To view or take place in current topics click here.
I need a way to edit html of a page, and keep it that way.
Posted:
I need a way to edit html of a page, and keep it that way.Posted:
Status: Offline
Joined: Feb 15, 201113Year Member
Posts: 544
Reputation Power: 17
For example,(not really want I need it for), Going to a friends facebook page and having the name something stupid like, "Hairy Face", and when I go back to his page it always changes it to Hairy face for me. I know it'll only be on my computer, but I just need something to do that. I can't just inspect element and change it because when you refresh it goes away of course.
#2. Posted:
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
I don't quite see how you could do that without a complete overkill.
I had a long idea only just to realize that facebook block iframes. ugh..
There is no simple way of doing it without playing around with your host file and/or writing a browser add-on. Unless someone else can think of something I am missing, you won't be able to do it without putting in a lot of unnecessary effort.
I had a long idea only just to realize that facebook block iframes. ugh..
There is no simple way of doing it without playing around with your host file and/or writing a browser add-on. Unless someone else can think of something I am missing, you won't be able to do it without putting in a lot of unnecessary effort.
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Feb 15, 201113Year Member
Posts: 544
Reputation Power: 17
iyop45 wrote I don't quite see how you could do that without a complete overkill.
I had a long idea only just to realize that facebook block iframes. ugh..
There is no simple way of doing it without playing around with your host file and/or writing a browser add-on. Unless someone else can think of something I am missing, you won't be able to do it without putting in a lot of unnecessary effort.
I was thinking tampermonkey but idk how to use that.
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
fever308 wroteiyop45 wrote I don't quite see how you could do that without a complete overkill.
I had a long idea only just to realize that facebook block iframes. ugh..
There is no simple way of doing it without playing around with your host file and/or writing a browser add-on. Unless someone else can think of something I am missing, you won't be able to do it without putting in a lot of unnecessary effort.
I was thinking tampermonkey but idk how to use that.
Oh well then you'd have to use that, like I said a browser add-on may of been another more feasible option and considering one is already made for you what's the problem? I can't really tell you how to use it because frankly I've only just heard of it. Though it seems very gui heavy and so it shouldn't be too difficult.
- 0useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Ctrl + S, save the webpage, and only the webpage (not complete). And edit the html and then you can open it later and see the changes you've made.
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Even wrote Ctrl + S, save the webpage, and only the webpage (not complete). And edit the html and then you can open it later and see the changes you've made.
I don't think this is what the OP was looking for. From what I see, he is looking for the edit to remain while browsing through facebook.com
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: May 30, 201014Year Member
Posts: 438
Reputation Power: 49
Status: Offline
Joined: May 30, 201014Year Member
Posts: 438
Reputation Power: 49
I have something working in Greasemonkey:
It doesn't work when you scroll down the page, not sure how to handle that so anyone that knows more about Javascript/jQuery may be able to help on that but it's something to start with.
// ==UserScript==
// @name Facebook Renamer
// @namespace facebookrenamer
// @description Renames a facebook friend
// @include http://*.facebook.com/*
// @include https://*.facebook.com/*
// @version 1
// @grant none
// ==/UserScript==
function main() {
jQ('body').html( jQ('body').html().replace(new RegExp(
/* ENTER FRIEND NAME HERE */
"John Smith" , "gi"),
/* NOW ENTER NEW NAME */
"Hairy Face"
///////////////////////////
) );
}
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
}
addJQuery(main);
It doesn't work when you scroll down the page, not sure how to handle that so anyone that knows more about Javascript/jQuery may be able to help on that but it's something to start with.
- 1useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.