This can be run as a job or manually. There are no parameters so it will do ALL log files that it finds; excluding system files.
If you want to shrink all database files including data files (and indexes) then find these lines of code:
SELECT @exec_stmt = 'INSERT INTO #logfiles
SELECT ''' + @DBName + ''' , name FROM ' + quotename(@DBName, N'[') + N'.dbo.sysfiles
WHERE groupid = 0'
and replace it with this code:
SELECT @exec_stmt = 'INSERT INTO #logfiles
SELECT ''' + @DBName + ''' , name FROM ' + quotename(@DBName, N'[') +N'.dbo.sysfiles'