[REQ]Removing extraneous output from IMDb script
Posted: 2015-02-05 16:39:31
I have just recently begun adding movies to my AMC again after a couple of years' hiatus, and am finding a lot of 'junk' in the comments section, specifically appended to the Trivia. For example:
At the end of each trivia line text similar to this appears:
42 of 43 found this interestingInteresting?YesNo|
Then on many entries, at the end of the Trivia there's a Javascript segment of varying length and content (sometimes quite HUGE!), like this:
if ('csm' in window) {csm.measure('csm_TitleContributeWidget_started');}Getting Started|Contributor Zone »Contribute to This PageEdit pageif ('csm' in window) {csm.measure('csm_TitleContributeWidget_finished');}
It's not so bad if there are only a few lines to edit, but I just did "Artificial Intelligence A.I.", and there were 52 lines of Trivia to edit, and I'm sure there are films with even more lines of Trivia. This will also make for a great increase in the size of my catalog, uless I completely turn off the downloading of the Trivia, which I'd rather not do...
Any script guru's out there that can help, maybe?
At the end of each trivia line text similar to this appears:
42 of 43 found this interestingInteresting?YesNo|
Then on many entries, at the end of the Trivia there's a Javascript segment of varying length and content (sometimes quite HUGE!), like this:
if ('csm' in window) {csm.measure('csm_TitleContributeWidget_started');}Getting Started|Contributor Zone »Contribute to This PageEdit pageif ('csm' in window) {csm.measure('csm_TitleContributeWidget_finished');}
It's not so bad if there are only a few lines to edit, but I just did "Artificial Intelligence A.I.", and there were 52 lines of Trivia to edit, and I'm sure there are films with even more lines of Trivia. This will also make for a great increase in the size of my catalog, uless I completely turn off the downloading of the Trivia, which I'd rather not do...
Any script guru's out there that can help, maybe?