nisargshah95
Your Ad here
Hi,
I'm really new to programming and created a small Greasemonkey script for disabling the theater view for viewing photos in Facebook. But its not working.
The basic principle I applied was to remove the '&theater' parameter at the end of every photo URL. Hope this gets fixed soon.
Here's the code -
I tested it by embedding it in a standard HTML file and running it locally. But it doesn't work for facebook. I think there's some issue with XPCNativeWrapper.
Thanks in advance.
I'm really new to programming and created a small Greasemonkey script for disabling the theater view for viewing photos in Facebook. But its not working.
The basic principle I applied was to remove the '&theater' parameter at the end of every photo URL. Hope this gets fixed soon.
Here's the code -
Code:
// ==UserScript==
// @name Kill The Theater
// @namespace *www.userscripts.org/
// @description Disable theater view in Facebook
// @include **.facebook.com/*
// @include **.facebook.com/*
// @exclude *www.facebook.com/home.php
// @version 0.2b
// ==/UserScript==
var url=window.location.href;
var condition=url.match("&theater");
if (condition=="&theater")
{
url=url.replace("&theater", "");
window.location.href=url;
}
I tested it by embedding it in a standard HTML file and running it locally. But it doesn't work for facebook. I think there's some issue with XPCNativeWrapper.
Thanks in advance.
Last edited: