Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Myspace - Custom Layout Dis/Enable
2008/02/05 - Disable or Re-Enable custom myspace layouts at the click of a button. Author: InsaneNinja.
Description
On the load of a profile, all style information is grabbed and stored. A red button on the top right handles the on/off functions of the style.
Extra style commands are used in disabled mode, to set maximum sizes on images and table cells. So you should not even have to scroll left-right while the style is disabled.
Please comment with your opinion, and especially, linking profiles where it does not work.
Options
Change these as you wish
var load_profile_theme = true var shrink_flash_files = false
Screenshots
::Disabled Layout::

::Re-Enabled Layout::

Updates
2008.02.05 - 10th Release - Disabled big/small, due to firefox's tendency to allow 20 inch letters in myspace comments that IE users dont realize they're creating.
2007.11.08 - 9th Release - Removed the Mysplinks tweaker.. dont know why this stopped working, it was very on/off, and then just started breaking things.
2007.10.22 - 8th Release - Set to use tld instead of com. Also added a few exceptions, as advised by chef_boyardee. Script does not run on film/music/etc sections anymore.
2007.09.23 - 7th Release - added a small bit to repair when someone leaves out the final "}".. fixing most problematic layouts
2007.08.06 - 6th Release - css layouts now stay enabled by default, a variable has been added for the option
2007.08.01 - 5th Release - disabled flash-file shrinking on band profiles
2007.07.29 - 4th Release - code cleanup, tweaked "disabled" css, added variable choice whether to resize flash files.
2007.07.20 - 3rd Release - tweaked disabled-mode css, now scrapes myspace-made custom styles
2007.07.19 - 2rd Release - attempts scraping all css styles, multiple times
2007.07.19 - 1st Release - initial release, known to be buggy
|
|
Dude, That would rule if you coul make myspace sexy like facebook.... I hope you can get around to it, if you get free time, of course. If you do end up doing it, would you mind emailing me? you can get my email from my profile, thanks. PS - Great script! |
|
|
This script is amazing. I was getting sick whenever I needed to visit this clogged monstrosity. And what pissed me off the most was not custom scripts but the load of stupid spam comments on every single profile page - all of them blinking, loading for ages some stupid posters that nobody gives a damn. And, adding insult to injury, pictures of tons of friends - yes, I visit a page of some music band especially to check whether Jim from Redneckville, Minnesota is their dedicated fan.
So, to remove the comment and friend sections of profile myspace pages, replace this part of code:
+ '.friendSpace table table td {width:25%!important; }, .friendSpace table table table td,.friendsComments td {width:auto!important; }\n'
with the following code:
+ '.friendSpace table table td {display:none; }\n'
+ '.friendsComments td {display:none; }\n'
To get rid of the friends section, but leave the comments section intact, replace only
'.friendSpace table table td {width:25%!important; }
with
'.friendSpace table table td {display:none; }
To get rid of the comments section, but leave the friends section intact, replace:
+ '.friendSpace table table td {width:25%!important; }, .friendSpace table table table td,.friendsComments td {width:auto!important; }\n'
with:
+ '.friendSpace table table td {width:25%!important; }\n'
+ '.friendsComments td {display:none; }\n'
So, once again - kudos to the author of this script! |
|
|
I use a number of scripts on MySpace, but this one competes with MySpaceHax (to show the hidden sections) for position. I just make a small change in line 135 from "right" to "left" to make it more balanced, and set this script above the other one to make both work. |
|
|
i've actually considered making an offshoot that combines this with a theme that makes myspace profiles look like facebook profiles.. could be funny to run around myspace looking as if it were a facebook clone |
|
|
great script. i was wondering, since the standard myspace layout isn't hugely appealing, would it be possible for me to specify a different layout code to replace what's on the profile instead of just stripping the CSS away? so i could specify the way i wanted peoples profiles to look as well as the elements i saw on a profile. that may be too much work, i dont know. just an idea i had |
|
|
add this to any script that is active on a profile page. GM_addStyle(' body * { opacity: 1.0 !important; } ') |
|
|
Is there any way to disable only certain parts of the css? In particular, I hate when people change the opacity of their images or whatever they do to make them blurry. I'd really like to possibly keep the rest of the layout intact. |
|
|
@John0877 http://userstyles.org/styles/site/myspace.com examine the sanitizers |
|
|
scratch that i got it working but is there a way to have profiles come up with the layout stripped already? it kinda defeats the purpose to have to download it then it gets stripped. |
|
|
i could not get this to work in Opera or Firefox. i really would love something like this to work. would also be cool if it could negate any transparency settings on profiles too. |
|
|
sorry.. i like girls |
|
|
HOLY SHIT I LOVE YOU! |
|
|
Salvador, this was meant to be done on purpose. There is code at the end of the script meant to un-convert the MySpace links. Just edit that out and you will be fine. |
|
|
on some myspace profiles it makes the images not show that are from photobucket could u please update it EX. Myspace Profile |
|
|
Very nice, will you be updating the "// @version " line ? |
|
|
The new @excludes don't work.....
|
|
|
seems every time i see a layout broken by my script, its because of a missing } symbol at the end of a random style command they used.. i have now taken care of that in this latest upgrade.. are there any other profiles that people are still having problems?
|
|
|
enabled on load means... it stays ON when the page loads |
|
|
for some reason its still disabling the css even tho i set css_enable_on_load to false |
|
|
@parry101 the css is applied directly to the button at the bottom of the script.. i applied it directly so that the script wouldnt removing its own button.. altho i'm guessing that this probably wasnt really needed i moved it to the right to match with the sign-out button i put into filthy's "a re modified myspace", and because of how many layouts put ads on the top left |
|
|
Thank you very much.
|
|
|
How would i put the button in the top left corner? |
|
|
your request is done, and uploaded.. i wanted to test it a day or two, because it still scrapes all the css data, but re-enables it a half-second later |
|
|
yea i would like the same so style is enabled when a page is loaded |
|
|
Could you possibly add variable choice for those who want the custom layout style on a page to be enabled by default rather than disabled, but still with the button in the corner? PLEASE. |
You could comment on this script if you were logged in.
